Created
April 28, 2018 12:37
-
-
Save lmiller1990/8f4aac6f89afa0d9c45337a5518adf36 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
const { | |
describe, | |
it, | |
expect, | |
matchers | |
} = require('./index') | |
let executes = 0 | |
const noop = () => { executes += 1 } | |
describe('describe', () => { | |
it('executes a callback function', () => { | |
const actual = describe('', noop) | |
expect(executes).toBe(1) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment