Skip to content

Commit c363318

Browse files
committed
Fixing Typos
1 parent 9cd0061 commit c363318

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

__tests__/embedPermissions.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ test('Options say to do nothing', (t) => {
4545
t.deepEqual(blankDoc, { _id: 'someId' }, 'Should not add permissions for { permissions: false} options');
4646
});
4747

48-
test('Permissions embeded under default key', (t) => {
48+
test('Permissions embedded under default key', (t) => {
4949
const managerDoc = { _id: 'someId' };
5050
embedPermissions(t.context.schema, { permissions: true }, ['manager'], managerDoc);
5151
t.deepEqual(

src/embedPermissions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function embedPermissions(schema, options, authLevels, doc) {
99

1010
if (doc[permsKey]) {
1111
// There's already something at the key where we're supposed to inset the permissions
12-
// Throw an excpetion to help the developer avoid this error.
12+
// Throw an exception to help the developer avoid this error.
1313
throw new Error(`Cannot embed permissions into mongoose document at \`${permsKey}\`because the key is already present in the document. Please specify a custom key.`);
1414
}
1515

0 commit comments

Comments
 (0)