Created
May 27, 2014 15:36
-
-
Save stephen-james/370f295ab3d306c3fb89 to your computer and use it in GitHub Desktop.
lab-karma-require-jasmine step 5 : creating a spec
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
define(['app', 'jquery'], function (App, $) { | |
describe("when the app starts", function () { | |
it("outputs 'App Started!' in the target", function () { | |
var target = $("<div></div>"); | |
var app = new App(target); | |
app.start(); | |
expect(target.html()).toEqual("App Started!"); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment