Skip to content

Instantly share code, notes, and snippets.

@psychomantys
Created May 26, 2013 15:26
Show Gist options
  • Save psychomantys/5653112 to your computer and use it in GitHub Desktop.
Save psychomantys/5653112 to your computer and use it in GitHub Desktop.
require.config({
"baseUrl": "www/",
"paths": {
"jquery": "thirdparty/jquery",
"underscore": "thirdparty/underscore",
"Sorvete": "js/sorvete/sorvete"
},
shim: {
'underscore': {
exports: '_'
}
}
});
describe("A false case", function() {
it("canot be true", function() {
expect(true).toBe(false);
});
});
require(["Sorvete"],
function (Sorvete) {
console.log("Test case load");
describe("Test 1", function() {
it("new not undefined", function() {
expect(new Sorvete() ).not.toBe(undefined);
});
});
describe("Test 2", function() {
it("The truth to be true", function() {
expect( true ).toBe(true);
});
});
console.log("Test case unload");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment