Skip to content

Instantly share code, notes, and snippets.

@bjartwolf
Created August 19, 2012 16:52
Show Gist options
  • Save bjartwolf/3396216 to your computer and use it in GitHub Desktop.
Save bjartwolf/3396216 to your computer and use it in GitHub Desktop.
buster 201 test
buster.testCase("The ViewModel", {
"should update the fullname when firstname changes": function () {
var vm = new AppViewModel();
vm.firstName("Arne");
assert.equals(vm.fullName(), "Arne Bertington");
},
"should capitalize the last name when capitalizeLastName is called": function () {
var vm = new AppViewModel();
vm.firstName("Arne");
vm.capitalizeLastName();
assert.equals(vm.fullName(), "Arne BERTINGTON");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment