Created
April 19, 2022 18:05
-
-
Save Rishabh570/c63e33a2ce80de1557506d6187cb5c31 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
describe('Test /health', () => { | |
before('before', () => { | |
console.log('Ran before all the test suites'); | |
}); | |
after('after', () => { | |
console.log('Ran after all the test suites'); | |
}); | |
beforeEach('beforeEach', () => { | |
console.log('Ran before EACH test suite'); | |
}); | |
afterEach('afterEach', () => { | |
console.log('Ran after EACH test suite'); | |
}); | |
describe('Health check on /sync', () => { | |
it('health should be okay', () => { | |
const actualResult = healthCheckSync(); | |
expect(actualResult).to.equal('OK'); | |
}); | |
}); | |
describe('Health check on /async', () => { | |
it('health should be okay', async () => { | |
const actualResult = await healthCheckAsync(); | |
expect(actualResult).to.equal('OK'); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment