Skip to content

Commit 85ad30e

Browse files
author
Kelly Selden
committed
remove unused test code
1 parent 82122cc commit 85ad30e

2 files changed

Lines changed: 2 additions & 22 deletions

File tree

test/integration/init-test.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const fs = require('fs-extra');
44
const path = require('path');
55
const { describe, it } = require('../helpers/mocha');
66
const { expect } = require('../helpers/chai');
7-
const sinon = require('sinon');
87
const {
98
buildTmp,
109
processExit,
@@ -20,26 +19,18 @@ describe(init, function() {
2019
this.timeout(5 * 60 * 1000);
2120

2221
let cwd;
23-
let sandbox;
2422
let tmpPath;
2523

2624
before(function() {
2725
cwd = process.cwd();
2826
});
2927

30-
beforeEach(function() {
31-
sandbox = sinon.createSandbox();
32-
});
33-
3428
afterEach(function() {
35-
sandbox.restore();
36-
3729
process.chdir(cwd);
3830
});
3931

4032
async function merge({
4133
fixturesPath,
42-
dirty,
4334
blueprint,
4435
from,
4536
to = '3.2.0-beta.1',
@@ -55,8 +46,7 @@ describe(init, function() {
5546
}) {
5647
tmpPath = await buildTmp({
5748
fixturesPath,
58-
commitMessage,
59-
dirty
49+
commitMessage
6050
});
6151

6252
await beforeMerge();

test/integration/install-test.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const fs = require('fs-extra');
44
const path = require('path');
55
const { describe, it } = require('../helpers/mocha');
66
const { expect } = require('../helpers/chai');
7-
const sinon = require('sinon');
87
const {
98
buildTmp,
109
processExit,
@@ -21,35 +20,26 @@ describe(install, function() {
2120
this.timeout(3 * 60 * 1000);
2221

2322
let cwd;
24-
let sandbox;
2523
let tmpPath;
2624

2725
before(function() {
2826
cwd = process.cwd();
2927
});
3028

31-
beforeEach(function() {
32-
sandbox = sinon.createSandbox();
33-
});
34-
3529
afterEach(function() {
36-
sandbox.restore();
37-
3830
process.chdir(cwd);
3931
});
4032

4133
async function merge({
4234
fixturesPath,
43-
dirty,
4435
addon,
4536
commitMessage,
4637
beforeMerge = () => Promise.resolve(),
4738
afterMerge = () => Promise.resolve()
4839
}) {
4940
tmpPath = await buildTmp({
5041
fixturesPath,
51-
commitMessage,
52-
dirty
42+
commitMessage
5343
});
5444

5545
await beforeMerge();

0 commit comments

Comments
 (0)