Last active
December 12, 2015 09:28
-
-
Save optilude/4751359 to your computer and use it in GitHub Desktop.
buster.js test with debugger
This file contains 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
var config = module.exports; | |
config["Client"] = { | |
autoRun: false, | |
rootPath: "../", | |
environment: "browser", | |
libs: [ | |
'public/vendor/libs/require.js', | |
'public/require.config.js' | |
], | |
sources: [ | |
"public/**/*.js", | |
"public/**/*.tpl" | |
], | |
tests: [ | |
"test/client/*-test.js" | |
], | |
extensions: [ | |
require("buster-amd") | |
] | |
}; |
This file contains 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.spec.expose(); | |
require.config({ | |
baseUrl: 'public/', | |
}); | |
describe('User', function(run) { | |
require([ | |
'app/models/user' | |
], function(User) { | |
run(function() { | |
describe("validation", function() { | |
it("requires a valid email", function() { | |
var u = new User(); | |
debugger; | |
var errors = u.validate({ | |
email: null, | |
name: null | |
}); | |
refute.isNull(errors); | |
}); | |
}); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment