Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Harley committed Oct 26, 2017
1 parent e6b530e commit a94021d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/permission/config-permission-handler-basicSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,17 +221,17 @@ describe('permission handler applies basic permissions referencing their own dat
})).toBe(false)
})

it('checks against existing data for non-existant record reads', (next) => {
it('checks against existing data for non-existant record reads', next => {
const permissions = getBasePermissions()

permissions.record['nonExistingRecord'] = {
permissions.record['non-Existing-Record'] = {
read: 'oldData.xyz === "hello"'
}

const message = {
topic: C.TOPIC.RECORD,
action: C.RECORD_ACTIONS.READ,
name: 'nonExistingRecord',
name: 'non-Existing-Record',
}

const callback = function (error, result) {
Expand All @@ -243,17 +243,17 @@ describe('permission handler applies basic permissions referencing their own dat
testPermission(permissions, message, 'user', null, callback)
})

it('checks against existing data for non-existant list reads', (next) => {
it('checks against existing data for non-existant list reads', next => {
const permissions = getBasePermissions()

permissions.record['nonExistingRecord'] = {
permissions.record['non-Existing-Record'] = {
read: 'oldData.indexOf("hello") !== -1'
}

const message = {
topic: C.TOPIC.RECORD,
action: C.RECORD_ACTIONS.READ,
name: 'nonExistingRecord',
name: 'non-Existing-Record',
}

const callback = function (error, result) {
Expand Down

0 comments on commit a94021d

Please sign in to comment.