Skip to content

Commit 842de6f

Browse files
authored
Merge pull request #115 from thefrontside/export-person-scenario
Transparently pass through person scenario
2 parents e67b1a9 + cfe6862 commit 842de6f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
"@simulacrum/auth0-simulator": patch
3+
---
4+
Fix bug where person scenario was not passing parameters down

packages/auth0/src/index.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,12 @@ export const auth0: Simulator<Options> = (slice, options) => {
5757
services: { auth0: createAuth0Service({ ...auth0Handlers, ...openIdHandlers }) },
5858
scenarios: {
5959
/**
60-
* Here we just wrap the internal `person` scenario to augment
61-
* it with a username and password
62-
* but what we really need to have some way to _react_ to the person
60+
* Here we just export the internal `person` scenario so that it can be
61+
* used with the a standalone auth0 simulator. However,
62+
* what we really need to have some way to _react_ to the person
6363
* having been created and augment the record at that point.
6464
*/
65-
*person(store, faker) {
66-
return yield person(store, faker);
67-
}
65+
person
6866
}
6967
};
7068
};

0 commit comments

Comments
 (0)