fixes non-browser-based tests
This commit is contained in:
parent
6a1ab4e39f
commit
3160e696df
3 changed files with 79 additions and 34 deletions
|
|
@ -1576,12 +1576,14 @@ function testMithril(mock) {
|
|||
}
|
||||
|
||||
//test reporting for saucelabs
|
||||
window.global_test_results = {
|
||||
tests: [],
|
||||
duration: 0,
|
||||
passed: 0,
|
||||
failed: 0
|
||||
};
|
||||
if (typeof window != "undefined") {
|
||||
window.global_test_results = {
|
||||
tests: [],
|
||||
duration: 0,
|
||||
passed: 0,
|
||||
failed: 0
|
||||
};
|
||||
}
|
||||
|
||||
//mock
|
||||
testMithril(mock.window);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue