invoke yarn fix:js to adopt the updated eslint rules. No other changes are included.

This commit is contained in:
Jesse Hallam
2018-02-21 14:20:33 -05:00
parent 38bcaaae5e
commit 620c5484e3
49 changed files with 251 additions and 251 deletions

View File

@@ -54,22 +54,22 @@ describe('PermissionManager', function() {
manager.grant(ORIGIN + '_another', PERMISSION + '_another');
JSON.parse(fs.readFileSync(permissionFile)).should.deep.equal({
origin: {
permission: 'denied'
permission: 'denied',
},
origin_another: {
permission_another: 'granted'
}
permission_another: 'granted',
},
});
});
it('should restore permissions from the file', function() {
fs.writeFileSync(permissionFile, JSON.stringify({
origin: {
permission: 'denied'
permission: 'denied',
},
origin_another: {
permission_another: 'granted'
}
permission_another: 'granted',
},
}));
const manager = new PermissionManager(permissionFile);
manager.isDenied('origin', 'permission').should.be.true;