Skip to content

Commit

Permalink
spelling again
Browse files Browse the repository at this point in the history
  • Loading branch information
oatkiller committed Jul 27, 2020
1 parent 1e7abdf commit 1395397
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class Simulator {

/**
* Return a promise that resolves after the `store`'s next state transition.
* Used by `mapStateTransisions`
* Used by `mapStateTransitions`
*/
private stateTransitioned(): Promise<void> {
// keep track of the resolve function of the promise that has been returned.
Expand All @@ -141,7 +141,7 @@ export class Simulator {
/**
* This will yield the return value of `mapper` after each state transition. If no state transition occurs for 10 event loops in a row, this will give up.
*/
public async *mapStateTransisions<R>(mapper: () => R): AsyncIterable<R> {
public async *mapStateTransitions<R>(mapper: () => R): AsyncIterable<R> {
// Yield the value before any state transitions have occurred.
yield mapper();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Resolver, when analyzing a tree that has 1 ancestor and 2 children', (
*
* For example, there might be no loading element at one point, and 1 graph element at one point, but never a single time when there is both 1 graph element and 0 loading elements.
*/
simulator.mapStateTransisions(() => ({
simulator.mapStateTransitions(() => ({
graphElements: simulator.graphElement().length,
graphLoadingElements: simulator.graphLoadingElement().length,
graphErrorElements: simulator.graphErrorElement().length,
Expand Down Expand Up @@ -73,7 +73,7 @@ describe('Resolver, when analyzing a tree that has 1 ancestor and 2 children', (
});
it('should render the second child node as selected, and the first child not as not selected, and the query string should indicate that the second child is selected', async () => {
await expect(
simulator.mapStateTransisions(function value() {
simulator.mapStateTransitions(function value() {
return {
// the query string has a key showing that the second child is selected
queryStringSelectedNode: simulator.queryStringValues().selectedNode,
Expand Down

0 comments on commit 1395397

Please sign in to comment.