Merge pull request #4799 from overleaf/hb-eslint-rules
Re-enable some eslint rules GitOrigin-RevId: 16153adb839bb61784bb40fbc8e43da281fe090d
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const SandboxedModule = require('sandboxed-module')
|
||||
const { expect } = require('chai')
|
||||
const assert = require('assert')
|
||||
const sinon = require('sinon')
|
||||
const modulePath =
|
||||
'../../../../app/src/Features/Subscription/UserFeaturesUpdater'
|
||||
@@ -46,6 +47,7 @@ describe('UserFeaturesUpdater', function () {
|
||||
(err, features) => {
|
||||
const updateArgs = this.User.findByIdAndUpdate.lastCall.args
|
||||
expect(updateArgs[0]).to.deep.equal(userId)
|
||||
assert.equal(err, null)
|
||||
expect(Object.keys(updateArgs[1]).length).to.equal(3)
|
||||
expect(updateArgs[1]['features.versioning']).to.equal(
|
||||
update.versioning
|
||||
@@ -69,6 +71,7 @@ describe('UserFeaturesUpdater', function () {
|
||||
userId,
|
||||
update,
|
||||
(err, featuresChanged) => {
|
||||
assert.equal(err, null)
|
||||
const updateArgs = this.User.findByIdAndUpdate.lastCall.args
|
||||
expect(updateArgs[0]).to.equal(userId)
|
||||
expect(Object.keys(updateArgs[1]).length).to.equal(2)
|
||||
|
||||
Reference in New Issue
Block a user