Skip to content

Commit

Permalink
MLIBZ-1481 Fix typo in acl unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Conner committed Dec 13, 2016
1 parent 0eedaaf commit 3752963
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/unit/entity/acl.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe('Acl', function() {
});

describe('addReader()', function() {
it('should not add exiting reader', function() {
it('should not add existing reader', function() {
const user = randomString();
const readers = [user];
const acl = new Acl({ _acl: { r: readers } });
Expand All @@ -157,15 +157,15 @@ describe('Acl', function() {
});

describe('addReaderGroup()', function() {
it('should not add exiting reader group', function() {
it('should not add existing reader group', function() {
const group = randomString();
const readerGroups = [group];
const acl = new Acl({ _acl: { groups: { r: readerGroups } } });
acl.addReaderGroup(group);
expect(acl.readerGroups).toEqual(readerGroups);
});

it('should not add exiting reader group', function() {
it('should not add existing reader group', function() {
const group = randomString();
const acl = new Acl({ _acl: {} });
acl.addReaderGroup(group);
Expand All @@ -174,7 +174,7 @@ describe('Acl', function() {
});

describe('addWriter()', function() {
it('should not add exiting writer', function() {
it('should not add existing writer', function() {
const user = randomString();
const writers = [user];
const acl = new Acl({ _acl: { w: writers } });
Expand All @@ -191,15 +191,15 @@ describe('Acl', function() {
});

describe('addWriterGroup()', function() {
it('should not add exiting writer group', function() {
it('should not add existing writer group', function() {
const group = randomString();
const writerGroups = [group];
const acl = new Acl({ _acl: { groups: { w: writerGroups } } });
acl.addWriterGroup(group);
expect(acl.writerGroups).toEqual(writerGroups);
});

it('should not add exiting reader group', function() {
it('should not add existing reader group', function() {
const group = randomString();
const acl = new Acl({ _acl: {} });
acl.addWriterGroup(group);
Expand Down

0 comments on commit 3752963

Please sign in to comment.