Created
November 6, 2017 11:54
-
-
Save bmfteixeira/709b3183cc7f98387710535b5afdfcc6 to your computer and use it in GitHub Desktop.
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
import Obj from '../Obj.vue' | |
describe('Obj', () => { | |
describe('Lifecycle', () => { | |
it('created', done => { | |
const context = { | |
getInitialConfig: () => {} | |
} | |
const getInitialConfigSpy = sinon.spy(context, 'getInitialConfigSpy') | |
Obj.created.call(context) | |
expect(getInitialConfigSpy).to.be.calledOnce | |
getInitialConfigSpy.restore() | |
done() | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment