UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

11 lines (7 loc) 346 B
StartTest(function (t) { t.it('Should preload to test script scope correctly', function (t) { t.isNot(window, t.global, "`enablePageRedirect` is in process") t.is(window.TestGlobal1, 'TestGlobal1', 'Correctly preloaded script') t.is(window.TestGlobal2, 'TestGlobal2', 'Correctly preloaded inline script') }) })