Skip to content

Commit

Permalink
[CHORE] fix Typo (#6635)
Browse files Browse the repository at this point in the history
Happen to run into this typo. Been using Ember for years, love your work! Good luck!

Co-authored-by: igorT <[email protected]>
  • Loading branch information
igorT authored and runspired committed Oct 24, 2019
1 parent 7dcd589 commit f0c170d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/-ember-data/tests/helpers/watch-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ QUnit.assert.watchedPropertyCounts = function assertWatchedPropertyCount(watched
expectedCount = expectedCount[0];
}

assertionText += ` | Expected ${expectedCount} change notifications for ${propertyName} but recieved ${counter.count}`;
assertionText += ` | Expected ${expectedCount} change notifications for ${propertyName} but received ${counter.count}`;

if (counter === undefined) {
throw new Error(`Cannot assert expected count for ${propertyName} as there is no watcher for that property`);
Expand Down
4 changes: 2 additions & 2 deletions packages/-ember-data/tests/integration/store-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ module('integration/store - destroy', function(hooks) {

run(store, 'destroy');

assert.equal(personWillDestroy.called.length, 1, 'expected person to have recieved willDestroy once');
assert.equal(personWillDestroy.called.length, 1, 'expected person to have received willDestroy once');
assert.equal(carWillDestroy.called.length, 1, 'expected car to recieve willDestroy once');
assert.equal(carsWillDestroy.called.length, 1, 'expected person.cars to recieve willDestroy once');
assert.equal(
Expand Down Expand Up @@ -561,7 +561,7 @@ module('integration/store - findRecord', function(hooks) {
badValues.map(item => {
assert.expectAssertion(() => {
store.findRecord('car', item);
}, `Expected id to be a string or number, recieved ${String(item)}`);
}, `Expected id to be a string or number, received ${String(item)}`);
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/-ember-data/tests/unit/store/peek-record-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module('unit/store/peekRecord - Store peekRecord', function(hooks) {
run(() => {
assert.expectAssertion(() => {
store.peekRecord('my-id');
}, /Expected id to be a string or number, recieved undefined/);
}, /Expected id to be a string or number, received undefined/);
});
});

Expand Down
2 changes: 1 addition & 1 deletion packages/record-data/addon/-private/coerce-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function ensureStringId(id: Coercable): string {
}

if (DEBUG && normalized === null) {
throw new Error(`Expected id to be a string or number, recieved ${String(id)}`);
throw new Error(`Expected id to be a string or number, received ${String(id)}`);
}

return normalized!;
Expand Down
2 changes: 1 addition & 1 deletion packages/store/addon/-private/system/coerce-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function ensureStringId(id: Coercable): string {
}

if (DEBUG && normalized === null) {
throw new Error(`Expected id to be a string or number, recieved ${String(id)}`);
throw new Error(`Expected id to be a string or number, received ${String(id)}`);
}

return normalized!;
Expand Down

0 comments on commit f0c170d

Please sign in to comment.