From 6d8b98f4474d84d920deeed45fc2fe99f57e778c Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Fri, 23 Feb 2018 22:44:10 +0300 Subject: [PATCH] Remove test with complicated conditions --- package.json | 1 - test/cli.test.js | 8 -------- test/fixtures/exact/index.js | 3 --- test/fixtures/exact/package.json | 12 ------------ yarn.lock | 6 ------ 5 files changed, 30 deletions(-) delete mode 100644 test/fixtures/exact/index.js delete mode 100644 test/fixtures/exact/package.json diff --git a/package.json b/package.json index 2c60079a..2f6fb980 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "yargs": "^11.0.0" }, "devDependencies": { - "attr-accept": "^1.1.2", "cross-spawn": "^6.0.4", "eslint": "^4.18.1", "eslint-ci": "^0.1.1", diff --git a/test/cli.test.js b/test/cli.test.js index 5c26e19d..f32a2a6a 100644 --- a/test/cli.test.js +++ b/test/cli.test.js @@ -251,14 +251,6 @@ it('uses different units', () => { }) }) -it('shows bytes if value is same in different units', () => { - return run([], { cwd: fixture('exact') }).then(result => { - expect(result.out).toContain('Package size: 2287 B') - expect(result.out).toContain('Size limit: 2283 B') - expect(result.code).toEqual(3) - }) -}) - it('supports absolute path', () => { const file = path.join(__dirname, 'fixtures/unlimit/empty.js') return run([file]).then(result => { diff --git a/test/fixtures/exact/index.js b/test/fixtures/exact/index.js deleted file mode 100644 index 3a6646b9..00000000 --- a/test/fixtures/exact/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict' - -require('attr-accept') diff --git a/test/fixtures/exact/package.json b/test/fixtures/exact/package.json deleted file mode 100644 index 9452bd13..00000000 --- a/test/fixtures/exact/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "private": true, - "dependencies": { - "attr-accept": "*" - }, - "size-limit": [ - { - "path": "index.js", - "limit": "2.23 KB" - } - ] -} diff --git a/yarn.lock b/yarn.lock index 7afec4bd..55a1c96a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -288,12 +288,6 @@ atob@^2.0.0: version "2.0.3" resolved "https://registry.yarnpkg.com/atob/-/atob-2.0.3.tgz#19c7a760473774468f20b2d2d03372ad7d4cbf5d" -attr-accept@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/attr-accept/-/attr-accept-1.1.2.tgz#6836bfe054e4ef1ee3076fdde56cec9bb3ffead6" - dependencies: - core-js "^2.5.0" - autoprefixer@^6.3.1: version "6.7.7" resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-6.7.7.tgz#1dbd1c835658e35ce3f9984099db00585c782014"