@@ -6,22 +6,20 @@ describe("Main", function () {
66 var util = csscriticLib . util ( ) ;
77
88 var setUpComparison = function ( comparison ) {
9- regression . compare . and . returnValue (
10- testHelper . successfulPromise ( comparison )
11- ) ;
9+ regression . compare . and . returnValue ( Promise . resolve ( comparison ) ) ;
1210 } ;
1311
1412 var setUpReferenceImage = function ( image , viewport ) {
1513 storage . readReferenceImage . and . returnValue (
16- testHelper . successfulPromise ( {
14+ Promise . resolve ( {
1715 image : image ,
1816 viewport : viewport ,
1917 } )
2018 ) ;
2119 } ;
2220
2321 var setUpReferenceImageMissing = function ( ) {
24- storage . readReferenceImage . and . returnValue ( testHelper . failedPromise ( ) ) ;
22+ storage . readReferenceImage . and . returnValue ( Promise . reject ( ) ) ;
2523 } ;
2624
2725 beforeEach ( function ( ) {
@@ -31,14 +29,10 @@ describe("Main", function () {
3129 "doReportTestSuite" ,
3230 ] ) ;
3331 reporting . doReportConfiguredComparison . and . returnValue (
34- testHelper . successfulPromise ( )
35- ) ;
36- reporting . doReportComparison . and . returnValue (
37- testHelper . successfulPromise ( )
38- ) ;
39- reporting . doReportTestSuite . and . returnValue (
40- testHelper . successfulPromise ( )
32+ Promise . resolve ( )
4133 ) ;
34+ reporting . doReportComparison . and . returnValue ( Promise . resolve ( ) ) ;
35+ reporting . doReportTestSuite . and . returnValue ( Promise . resolve ( ) ) ;
4236
4337 regression = jasmine . createSpyObj ( "regression" , [ "compare" ] ) ;
4438 storage = jasmine . createSpyObj ( "storage" , [ "readReferenceImage" ] ) ;
0 commit comments