mirror of
https://github.com/nasa/openmct.git
synced 2025-01-25 21:59:23 +00:00
[Build] Don't appear to use new for side effects
This commit is contained in:
parent
7eb7027b67
commit
5920533637
@ -52,7 +52,7 @@ define([
|
|||||||
describe('when element exists', function () {
|
describe('when element exists', function () {
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
$document.querySelectorAll.andReturn([splashElement]);
|
$document.querySelectorAll.andReturn([splashElement]);
|
||||||
new SplashScreenManager([$document]);
|
return new SplashScreenManager([$document]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('adds fade out class', function () {
|
it('adds fade out class', function () {
|
||||||
@ -79,7 +79,7 @@ define([
|
|||||||
$document.querySelectorAll.andReturn([]);
|
$document.querySelectorAll.andReturn([]);
|
||||||
|
|
||||||
function run() {
|
function run() {
|
||||||
new SplashScreenManager([$document]);
|
return new SplashScreenManager([$document]);
|
||||||
}
|
}
|
||||||
|
|
||||||
expect(run).not.toThrow();
|
expect(run).not.toThrow();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user