mirror of
https://github.com/visgl/react-map-gl.git
synced 2025-12-08 20:16:02 +00:00
26 lines
547 B
JavaScript
26 lines
547 B
JavaScript
/* global window */
|
|
require('@babel/register');
|
|
|
|
const test = require('tape');
|
|
const {_enableDOMLogging: enableDOMLogging} = require('@probe.gl/test-utils');
|
|
|
|
let failed = false;
|
|
test.onFinish(window.browserTestDriver_finish);
|
|
test.onFailure(() => {
|
|
failed = true;
|
|
window.browserTestDriver_fail();
|
|
});
|
|
|
|
// tap-browser-color alternative
|
|
enableDOMLogging({
|
|
getStyle: message => ({
|
|
background: failed ? '#F28E82' : '#8ECA6C',
|
|
position: 'absolute',
|
|
top: '500px',
|
|
width: '100%'
|
|
})
|
|
});
|
|
|
|
require('./src');
|
|
// require('./render');
|