Skip to content

Instantly share code, notes, and snippets.

@lfender6445
Last active December 29, 2015 09:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lfender6445/7649335 to your computer and use it in GitHub Desktop.
jasmine require js trickery
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