Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CHORE] fix Typo #6635

Merged
merged 1 commit into from
Oct 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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