Skip to content

Commit 3afbf1e

Browse files
author
jack
committedNov 15, 2017
fix line indent
1 parent f4b09e4 commit 3afbf1e

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed
 

‎tests/compile.test.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ describe('compile', () => {
6363
const testWebpackConfig = 'testconfig';
6464
module.webpackConfig = testWebpackConfig;
6565
return expect(module.compile()).to.be.fulfilled
66-
.then(() => {
67-
expect(webpackMock).to.have.been.calledWith(testWebpackConfig);
68-
expect(webpackMock.compilerMock.run).to.have.been.calledOnce;
69-
return null;
70-
});
66+
.then(() => {
67+
expect(webpackMock).to.have.been.calledWith(testWebpackConfig);
68+
expect(webpackMock.compilerMock.run).to.have.been.calledOnce;
69+
return null;
70+
});
7171
});
7272

7373
it('should fail if there are compilation errors', () => {
@@ -93,11 +93,11 @@ describe('compile', () => {
9393
webpackMock.compilerMock.run.reset();
9494
webpackMock.compilerMock.run.yields(null, multiStats);
9595
return expect(module.compile()).to.be.fulfilled
96-
.then(() => {
97-
expect(webpackMock).to.have.been.calledWith(testWebpackConfig);
98-
expect(webpackMock.compilerMock.run).to.have.been.calledOnce;
99-
return null;
100-
});
96+
.then(() => {
97+
expect(webpackMock).to.have.been.calledWith(testWebpackConfig);
98+
expect(webpackMock.compilerMock.run).to.have.been.calledOnce;
99+
return null;
100+
});
101101
});
102102

103103
it('should use correct stats option', () => {
@@ -118,12 +118,12 @@ describe('compile', () => {
118118
webpackMock.compilerMock.run.reset();
119119
webpackMock.compilerMock.run.yields(null, mockStats);
120120
return (expect(module.compile()).to.be.fulfilled)
121-
.then(() => {
122-
module.webpackConfig = [testWebpackConfig];
123-
return (expect(module.compile()).to.be.fulfilled);
124-
})
125-
.then(() => {
126-
expect(mockStats.toString.args).to.eql([[testWebpackConfig.stats], [testWebpackConfig.stats]]);
127-
});
121+
.then(() => {
122+
module.webpackConfig = [testWebpackConfig];
123+
return (expect(module.compile()).to.be.fulfilled);
124+
})
125+
.then(() => {
126+
expect(mockStats.toString.args).to.eql([[testWebpackConfig.stats], [testWebpackConfig.stats]]);
127+
});
128128
});
129129
});

0 commit comments

Comments
 (0)