Skip to content

Commit

Permalink
test(integrity): adjust additional test case
Browse files Browse the repository at this point in the history
  • Loading branch information
imsnif committed Feb 26, 2018
1 parent ab3edf7 commit 9d54937
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions __tests__/commands/install/offline-mirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ test.concurrent('install should add missing deps to yarn and mirror (PR import s

const lockFileContent = await fs.readFile(path.join(config.cwd, 'yarn.lock'));
const lockFileLines = explodeLockfile(lockFileContent);
expect(lockFileLines).toHaveLength(11);
expect(lockFileLines[3].indexOf('mime-db@')).toEqual(0);
expect(lockFileLines[6].indexOf('mime-types@2.0.0')).toEqual(0);
expect(lockFileLines).toHaveLength(14);
expect(lockFileLines[4].indexOf('mime-db@')).toEqual(0);
expect(lockFileLines[8].indexOf('mime-types@2.0.0')).toEqual(0);
});
});

Expand Down Expand Up @@ -232,8 +232,8 @@ test.concurrent('install should update a dependency to yarn and mirror (PR impor
expect(lockFileLines[0]).toEqual('mime-db@~1.23.0:');
expect(lockFileLines[2]).toMatch(/resolved "https:\/\/registry\.yarnpkg\.com\/mime-db\/-\/mime-db-/);
expect(lockFileLines[3]).toEqual('mime-types@2.1.11:');
expect(lockFileLines[5]).toMatch(
expect(lockFileLines[4]).toEqual('mime-types@2.1.11:');
expect(lockFileLines[6]).toMatch(
/resolved "https:\/\/registry\.yarnpkg\.com\/mime-types\/-\/mime-types-2\.1\.11\.tgz#[a-f0-9]+"/,
);

Expand Down

0 comments on commit 9d54937

Please sign in to comment.