UNPKG

siesta-lite

Version:

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

25 lines (19 loc) 716 B
StartTest(function(t) { t.getHarness([ { preload : [ 'missingfile.js' ], url : 'testfiles/601_siesta_ui_passing.t.js' } ]); t.chain( { waitFor : 'rowsVisible', args : 'testgrid' }, function(next) { var store = t.cq1('testgrid').store; var testRecord = store.getNodeById('testfiles/601_siesta_ui_passing.t.js'); t.waitForHarnessEvent('testsuiteend', function() { t.ok(testRecord.get('test').isFailed(), 'Should find failed tests if there is a missing preload'); }); Harness.launch([ testRecord.get('descriptor') ]); } ); });