Skip to content

Instantly share code, notes, and snippets.

@plasticrake
Created September 18, 2017 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plasticrake/71e6a69de1c9bf8d8234ab597cde6a77 to your computer and use it in GitHub Desktop.
Save plasticrake/71e6a69de1c9bf8d8234ab597cde6a77 to your computer and use it in GitHub Desktop.
'use strict';
function getAsyncTests () {
return new Promise((resolve, reject) => {
setTimeout(resolve, 1);
});
}
(async () => {
let tests = await getAsyncTests();
describe('Async Mocha', function () {
describe('Will it grep1?', function () {
it('it grepped1!', function () {
});
});
});
run();
})();
'use strict';
function getAsyncTests () {
return new Promise((resolve, reject) => {
setTimeout(resolve, 1);
});
}
(async () => {
let tests = await getAsyncTests();
describe('Async Mocha', function () {
describe('Will it grep2?', function () {
it('it grepped2!', function () {
});
});
});
run();
})();
'use strict';
describe('Sync Mocha', function () {
describe('Will it grep3?', function () {
it('it grepped3!', function () {
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment