Skip to content

Instantly share code, notes, and snippets.

@optilude
Last active December 12, 2015 09:28
Show Gist options
  • Save optilude/4751359 to your computer and use it in GitHub Desktop.
Save optilude/4751359 to your computer and use it in GitHub Desktop.
buster.js test with debugger
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")
]
};
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