Last active
December 29, 2015 09:19
-
-
Save lfender6445/7649335 to your computer and use it in GitHub Desktop.
jasmine require js trickery
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
subject = {} | |
describe 'Main', -> | |
beforeAll = false | |
beforeEach -> | |
return if (beforeAll) | |
beforeAll = true; | |
require ['shared/main'], (main) -> subject = main | |
it 'should initialize the application', -> | |
expect(subject).toBeTruthy() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment