kopia lustrzana https://github.com/rastapasta/mapscii
13 wiersze
327 B
JavaScript
13 wiersze
327 B
JavaScript
'use strict';
|
|
const TileSource = require('./TileSource');
|
|
|
|
describe('TileSource', () => {
|
|
describe('with a HTTP source', () => {
|
|
test('sets the mode to 3', async () => {
|
|
const tileSource = new TileSource();
|
|
await tileSource.init('http://mapscii.me/');
|
|
expect(tileSource.mode).toBe(3);
|
|
});
|
|
});
|
|
});
|