You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/hooks.spec.ts
+45-18Lines changed: 45 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -203,30 +203,57 @@ describe('Hooks', () => {
203
203
});
204
204
205
205
describe('Requirement 4.3.4',()=>{
206
-
it('"before" evaluationContext must be merged with invocation evaluationContext, which before taking precedence',async()=>{
207
-
awaitclient.getBooleanValue(
208
-
FLAG_KEY,
209
-
false,
210
-
// add a prop to the context, and some duplicates to overwrite
211
-
{invocationProp: 'abc',propToOverwrite: 'xxx'},
212
-
{
213
-
hooks: [
214
-
{
215
-
before: ()=>{
216
-
return{hookProp: 'def',propToOverwrite: 'ghi'};
217
-
},
206
+
it('When before hooks have finished executing, any resulting evaluation context MUST be merged with the existing evaluation context in the following order: before-hook (highest precedence), invocation, client, api (lowest precedence).',async()=>{
0 commit comments