Fix spec linting issues
This commit is contained in:
parent
a9d5699a52
commit
eac5ba4c56
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ describe('ipc module', function () {
|
||||||
assert.equal(a.bar, 1234)
|
assert.equal(a.bar, 1234)
|
||||||
assert.equal(a.anonymous.constructor.name, '')
|
assert.equal(a.anonymous.constructor.name, '')
|
||||||
assert.equal(a.getConstructorName(Object.create(null)), '')
|
assert.equal(a.getConstructorName(Object.create(null)), '')
|
||||||
assert.equal(a.getConstructorName(new (class {})), '')
|
assert.equal(a.getConstructorName(new (class {})()), '')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should search module from the user app', function () {
|
it('should search module from the user app', function () {
|
||||||
|
|
2
spec/fixtures/module/no-prototype.js
vendored
2
spec/fixtures/module/no-prototype.js
vendored
|
@ -4,7 +4,7 @@ foo.baz = false
|
||||||
module.exports = {
|
module.exports = {
|
||||||
foo: foo,
|
foo: foo,
|
||||||
bar: 1234,
|
bar: 1234,
|
||||||
anonymous: new (class {}),
|
anonymous: new (class {})(),
|
||||||
getConstructorName: function (value) {
|
getConstructorName: function (value) {
|
||||||
return value.constructor.name
|
return value.constructor.name
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue