Skip to content

Instantly share code, notes, and snippets.

@Rishabh570
Created April 19, 2022 18:05
Show Gist options
  • Save Rishabh570/c63e33a2ce80de1557506d6187cb5c31 to your computer and use it in GitHub Desktop.
Save Rishabh570/c63e33a2ce80de1557506d6187cb5c31 to your computer and use it in GitHub Desktop.
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