Skip to content

Commit

Permalink
Try to fix Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed May 13, 2018
1 parent aa7dc0d commit 067d6bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/index.test.js
Expand Up @@ -8,7 +8,7 @@ function fixture (name) {

function trim (num) {
// round number with assumption
return Math.floor(num / 20) * 20
return Math.floor(num / 50) * 50
}

it('returns 0 for parsed and gzip empty project', () => {
Expand Down Expand Up @@ -49,13 +49,13 @@ it('support images', () => {

it('supports CSS', () => {
return getSize(fixture('css/index')).then(size => {
expect(trim(size.gzip)).toEqual(2340)
expect(trim(size.gzip)).toEqual(2300)
})
})

it('supports CSS modules', () => {
return getSize(fixture('cssmodules/index')).then(size => {
expect(trim(size.gzip)).toEqual(2360)
expect(trim(size.gzip)).toEqual(2350)
})
})

Expand Down

0 comments on commit 067d6bb

Please sign in to comment.