en.javascript.info/1-js/03-code-quality/05-testing-mocha/beforeafter.view/test.js
Ilya Kantor ab9ab64bd5 up
2017-03-21 14:41:49 +03:00

12 lines
346 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

describe("test", function() {
before(() => alert("Testing started before all tests"));
after(() => alert("Testing finished after all tests"));
beforeEach(() => alert("Before a test enter a test"));
afterEach(() => alert("After a test exit a test"));
it('test 1', () => alert(1));
it('test 2', () => alert(2));
});