Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('getInteractiveLayerIds#JS style', t => {
const layers = getInteractiveLayerIds(TEST_STYLE_JS);
t.equal(deepEqual(layers, ['interactive']), true, 'got expected layer ids');
t.end();
});
test('getInteractiveLayerIds#String style', t => {
const layers = getInteractiveLayerIds(TEST_STYLE_STRING);
t.notOk(layers, 'should not return layer ids');
t.end();
});
test('getInteractiveLayerIds#Immutable style', t => {
const layers = getInteractiveLayerIds(TEST_STYLE_IMMUTABLE);
t.equal(deepEqual(layers, ['interactive']), true, 'got expected layer ids');
t.end();
});