Home Reference Source Test Repository

test/asserttest.js

  1. import './support';
  2.  
  3. function delay(ms) {
  4. return new Promise((resolve) => {
  5. setTimeout(resolve, ms);
  6. });
  7. }
  8.  
  9. describe('The test runner', function() {
  10. it('should pass this test', async function() {
  11. await delay(1000);
  12. expect(true).to.be.ok;
  13. });
  14. });