Created
August 19, 2012 16:52
-
-
Save bjartwolf/3396216 to your computer and use it in GitHub Desktop.
buster 201 test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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