diff --git a/src/TileSource.spec.js b/src/TileSource.spec.js index 4451c3f..77d2022 100644 --- a/src/TileSource.spec.js +++ b/src/TileSource.spec.js @@ -2,10 +2,10 @@ const TileSource = require('./TileSource'); describe('TileSource', () => { - describe('with a HTTP source', async () => { - const tileSource = new TileSource(); - await tileSource.init('http://mapscii.me/'); - test('sets the mode to 3', () => { + describe('with a HTTP source', () => { + test('sets the mode to 3', async () => { + const tileSource = new TileSource(); + await tileSource.init('http://mapscii.me/'); tileSource.mode = 3; }); });