Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Jul 10, 2018
1 parent 2988e80 commit f2ef4f8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
8 changes: 5 additions & 3 deletions test/unit/build-solution.spec.js
@@ -1,17 +1,19 @@
/* eslint-disable import/order */
const gulp = require('gulp');

const { Sinon } = require('../tools');

const gulpMsBuild = Sinon.stub();

const buildSolution = require('proxyquire')('../../src/build-solution', {
'gulp-msbuild': gulpMsBuild,
'gulp-msbuild': gulpMsBuild
});

const { Sinon } = require('../tools');

describe('buildSolution', () => {
before(() => {
this.gulpStub = {
pipe: Sinon.stub(),
pipe: Sinon.stub()
};

gulpMsBuild.returns('msbBuildReturnFn');
Expand Down
4 changes: 3 additions & 1 deletion test/unit/nuget-restore.spec.js
@@ -1,12 +1,14 @@
/* eslint-disable import/order */
const gulp = require('gulp');

const { Sinon } = require('../tools');

const gulpNugetRestoreStub = Sinon.stub();

const nugetRestore = require('proxyquire')('../../src/nuget-restore', {
'gulp-nuget-restore': gulpNugetRestoreStub
});

const { Sinon } = require('../tools');

describe('nugetRestore', () => {
before(() => {
Expand Down
5 changes: 2 additions & 3 deletions test/unit/publish.spec.js
@@ -1,4 +1,6 @@
/* eslint-disable import/order */
const gulp = require('gulp');
const { Sinon } = require('../tools');

const msBuild = Sinon.stub();
const foreach = Sinon.stub();
Expand All @@ -8,9 +10,6 @@ const publish = require('proxyquire')('../../src/publish', {
'gulp-foreach': foreach
});

const { Sinon } = require('../tools');


describe('publish', () => {
before(() => {
this.gulpStub = {
Expand Down
17 changes: 9 additions & 8 deletions test/unit/watch.spec.js
@@ -1,12 +1,13 @@
/* eslint-disable import/order */
const { Sinon } = require('../tools');

const tapStub = Sinon.stub();

const watch = require('proxyquire')('../../src/watch', {
'gulp-tap': tapStub
});

const gulp = require('gulp');
const { Sinon } = require('../tools');


const formatPath = require('../../src/utils/format-path');

Expand All @@ -31,8 +32,8 @@ describe('watch', () => {
exclude: true
});

tapStub.getCall(0).args[ 0 ]('stream', { path: '/path' });
this.watchStub.getCall(0).args[ 1 ]({ type: 'changed', path: '/other' });
tapStub.getCall(0).args[0]('stream', { path: '/path' });
this.watchStub.getCall(0).args[1]({ type: 'changed', path: '/other' });
});

after(() => {
Expand All @@ -44,7 +45,7 @@ describe('watch', () => {

it('should call gulp.src() (1)', () => {
this.srcStub.getCall(0).should.have.been.calledWithExactly(
[ './src/src', '!./src/**/obj/src' ],
['./src/src', '!./src/**/obj/src'],
{ base: formatPath('.\\src') }
);
});
Expand Down Expand Up @@ -92,8 +93,8 @@ describe('watch', () => {
exclude: false
});

tapStub.getCall(0).args[ 0 ]('stream', { path: '/path' });
this.watchStub.getCall(0).args[ 1 ]({ type: 'changed', path: '/other' });
tapStub.getCall(0).args[0]('stream', { path: '/path' });
this.watchStub.getCall(0).args[1]({ type: 'changed', path: '/other' });
});

after(() => {
Expand All @@ -105,7 +106,7 @@ describe('watch', () => {

it('should call gulp.src() (1)', () => {
this.srcStub.getCall(0).should.have.been.calledWithExactly(
[ './src/src' ],
['./src/src'],
{ base: formatPath('.\\src') }
);
});
Expand Down

0 comments on commit f2ef4f8

Please sign in to comment.