File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,8 @@ describe("minijson", () => {
15
15
const fixtureNum = pathInfo . length
16
16
for ( let iFixture = 0 ; iFixture !== fixtureNum ; ++ iFixture ) {
17
17
it ( pathInfo [ iFixture ] . originalFile , ( ) => {
18
- const originalObject = originalInfo [ iFixture ] . originalObject
19
- const minifiedObject = resultInfo [ iFixture ] . minifiedObject
20
- expect ( minifiedObject ) . toEqual ( originalObject )
18
+ expect ( resultInfo [ iFixture ] . minifiedObject ) . toEqual ( originalInfo [ iFixture ] . originalObject )
19
+ expect ( resultInfo [ iFixture ] . minifiedString ) . toEqual ( JSON . stringify ( originalInfo [ iFixture ] . originalObject ) )
21
20
} )
22
21
}
23
22
@@ -34,6 +33,7 @@ describe("minijson", () => {
34
33
for ( let iFixture = 0 ; iFixture !== fixtureNum ; ++ iFixture ) {
35
34
it ( pathInfo [ iFixture ] . originalFile , ( ) => {
36
35
expect ( resultInfo [ iFixture ] . minifiedObject ) . toEqual ( originalInfo [ iFixture ] . originalObject )
36
+ expect ( resultInfo [ iFixture ] . minifiedString ) . toEqual ( JSON . stringify ( originalInfo [ iFixture ] . originalObject ) )
37
37
} )
38
38
}
39
39
You can’t perform that action at this time.
0 commit comments