Last active
August 29, 2015 14:07
-
-
Save appleton/774d7e54351fd33789bb to your computer and use it in GitHub Desktop.
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
describe('A test', function() { | |
set('data', function() { | |
return { some: 'stuff' }; | |
}); | |
set('subject', function() { | |
return new FooThing(data); | |
}); | |
it('does stuff', function() { | |
expect(subject.method()).toBe('whatever'); | |
}); | |
}); | |
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
describe('A test', function() { | |
var subject; | |
var data; | |
beforeEach(function() { | |
data = { | |
some: 'stuff' | |
}; | |
subject = new FooThing(data); | |
}); | |
afterEach(function() { | |
data = null; | |
subject = null; | |
}); | |
it('does stuff', function() { | |
expect(subject.method()).toBe('whatever'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment