不要怂,就是干,撸起袖子干!

Commit 6bfdfbe2 by Jan Aagaard Meier

Pesky semicolons

1 parent 9ba08deb
...@@ -143,7 +143,7 @@ module.exports = (function() { ...@@ -143,7 +143,7 @@ module.exports = (function() {
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
self.on('error', reject) self.on('error', reject)
.on('success', resolve); .on('success', resolve)
}).then(onFulfilled, onRejected) }).then(onFulfilled, onRejected)
} }
...@@ -157,10 +157,10 @@ module.exports = (function() { ...@@ -157,10 +157,10 @@ module.exports = (function() {
self.on('error', reject) self.on('error', reject)
.on('success', function () { .on('success', function () {
resolve(Array.prototype.slice.apply(arguments)) // Transform args to an array resolve(Array.prototype.slice.apply(arguments)) // Transform args to an array
}); })
}).spread(onFulfilled, onRejected) }).spread(onFulfilled, onRejected)
} }
return CustomEventEmitter; return CustomEventEmitter
})() })()
...@@ -321,7 +321,7 @@ describe(Support.getTestDialectTeaser("Promise"), function () { ...@@ -321,7 +321,7 @@ describe(Support.getTestDialectTeaser("Promise"), function () {
.then(function(user) { .then(function(user) {
expect(user.id).to.equal(1) expect(user.id).to.equal(1)
expect(arguments.length).to.equal(1) expect(arguments.length).to.equal(1)
done(); done()
}) })
}) })
...@@ -333,7 +333,7 @@ describe(Support.getTestDialectTeaser("Promise"), function () { ...@@ -333,7 +333,7 @@ describe(Support.getTestDialectTeaser("Promise"), function () {
expect(user.id).to.equal(1) expect(user.id).to.equal(1)
expect(created).to.equal(false) expect(created).to.equal(false)
expect(arguments.length).to.equal(2) expect(arguments.length).to.equal(2)
done(); done()
}) })
}) })
it('user created', function (done) { it('user created', function (done) {
...@@ -343,7 +343,7 @@ describe(Support.getTestDialectTeaser("Promise"), function () { ...@@ -343,7 +343,7 @@ describe(Support.getTestDialectTeaser("Promise"), function () {
expect(user.id).to.equal(2) expect(user.id).to.equal(2)
expect(created).to.equal(true) expect(created).to.equal(true)
expect(arguments.length).to.equal(2) expect(arguments.length).to.equal(2)
done(); done()
}) })
}) })
it('works for functions with only one return value', function (done) { it('works for functions with only one return value', function (done) {
...@@ -352,7 +352,7 @@ describe(Support.getTestDialectTeaser("Promise"), function () { ...@@ -352,7 +352,7 @@ describe(Support.getTestDialectTeaser("Promise"), function () {
.spread(function(user) { .spread(function(user) {
expect(user.id).to.equal(1) expect(user.id).to.equal(1)
expect(arguments.length).to.equal(1) expect(arguments.length).to.equal(1)
done(); done()
}) })
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!