diff --git a/src/TileSource.spec.js b/src/TileSource.spec.js new file mode 100644 index 0000000..4451c3f --- /dev/null +++ b/src/TileSource.spec.js @@ -0,0 +1,12 @@ +'use strict'; +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', () => { + tileSource.mode = 3; + }); + }); +});