Skip to content

Commit 24dcf50

Browse files
chore: typos
1 parent 043eb29 commit 24dcf50

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/@lwc/engine-core/src/framework/modules/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class ContextConnector<C extends object> {
6969
this.#renderer.registerContextConsumer(this.#elm, ContextEventName, {
7070
setNewContext: (providerContextVarieties: ContextVarieties): ShouldContinueBubbling => {
7171
// If the provider has the specified context variety, then it is consumed
72-
// and true is called to stop bubbling.
72+
// and true is returned to stop bubbling.
7373
if (providerContextVarieties.has(contextVariety)) {
7474
contextProvidedCallback(providerContextVarieties.get(contextVariety));
7575
return true;

packages/@lwc/integration-karma/scripts/karma-plugins/hydration-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function throwOnUnexpectedConsoleCalls(runnable, expectedConsoleCalls = {}) {
124124
return;
125125
}
126126

127-
throw new Error('Unexpected console.' + method + ' call: ' + error);
127+
throw new Error(`Unexpected console.${method} call: ${error}`);
128128
};
129129
}
130130
try {

packages/@lwc/integration-karma/test-hydration/context/index.spec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ export default {
2929
// Assert context is provided by the grandparent and consumed correctly by all children
3030
assertCorrectContext(snapshot);
3131

32-
// Assert context is shadowed when changed
32+
// Assert context is shadowed when consumed in a chain
3333
assertContextShadowed(snapshot);
3434

3535
// Assert context is disconnected when components are removed
3636
assertContextDisconnected(target, snapshot);
3737

38-
// Expect an error as one context was generated twice. Expect no hydration warnings.
38+
// Expect an error as one context was generated twice.
39+
// Context values are expected to be rendered (there should be no hydration warnings)
3940
TestUtils.expectConsoleCalls(consoleCalls, {
4041
error: [
4142
'Multiple contexts of the same variety were provided. Only the first context will be used.',

0 commit comments

Comments
 (0)