Skip to content

Commit

Permalink
Fix typo in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnAlbin committed Mar 27, 2021
1 parent 1cd7e21 commit 5b98eae
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ describe('PostCSS Guidelines', function () {

it('should allow override of `to` processing option', function (cb) {

var stream = postcss([ doubler ], {to: 'overriden'})
var stream = postcss([ doubler ], {to: 'overridden'})
postcssStub.process.returns(Promise.resolve({
css: '',
warnings: function () {
Expand All @@ -260,7 +260,7 @@ describe('PostCSS Guidelines', function () {
}))

stream.on('data', function () {
assert.equal(postcssStub.process.getCall(0).args[1].to, 'overriden')
assert.equal(postcssStub.process.getCall(0).args[1].to, 'overridden')
cb()
})

Expand All @@ -282,7 +282,7 @@ describe('PostCSS Guidelines', function () {
var plugins = [ doubler ]
var callback = sandbox.stub().returns({
plugins: plugins,
options: { to: 'overriden' }
options: { to: 'overridden' }
})
var stream = postcss(callback)

Expand All @@ -296,7 +296,7 @@ describe('PostCSS Guidelines', function () {
stream.on('data', function () {
assert.equal(callback.getCall(0).args[0], file)
assert.equal(postcssStub.use.getCall(0).args[0], plugins)
assert.equal(postcssStub.process.getCall(0).args[1].to, 'overriden')
assert.equal(postcssStub.process.getCall(0).args[1].to, 'overridden')
cb()
})

Expand All @@ -316,7 +316,7 @@ describe('PostCSS Guidelines', function () {

postcssLoadConfigStub.returns(Promise.resolve({
plugins: plugins,
options: { to: 'overriden' }
options: { to: 'overridden' }
}))

postcssStub.process.returns(Promise.resolve({
Expand All @@ -333,7 +333,7 @@ describe('PostCSS Guidelines', function () {
options: { to: 'initial' }
})
assert.equal(postcssStub.use.getCall(0).args[0], plugins)
assert.equal(postcssStub.process.getCall(0).args[1].to, 'overriden')
assert.equal(postcssStub.process.getCall(0).args[1].to, 'overridden')
cb()
})

Expand Down Expand Up @@ -403,7 +403,7 @@ describe('PostCSS Guidelines', function () {
})

it('should not override `from` and `map` if using gulp-sourcemaps', function (cb) {
var stream = postcss([ doubler ], { from: 'overriden', map: 'overriden' })
var stream = postcss([ doubler ], { from: 'overridden', map: 'overridden' })
var cssPath = __dirname + '/fixture.css'
postcssStub.process.returns(Promise.resolve({
css: '',
Expand Down

0 comments on commit 5b98eae

Please sign in to comment.