test: accept stable profile refresh semantics
This commit is contained in:
@@ -116,7 +116,10 @@ test("candidate acceptance refreshes the profile result without overwriting an o
|
||||
page.indexOf("function updateSession"),
|
||||
);
|
||||
assert.match(refresh, /const nextProfile = readProfile\(latest\.profile\)/);
|
||||
assert.match(refresh, /setProfile\(nextProfile\)/);
|
||||
assert.match(
|
||||
refresh,
|
||||
/setProfile\(\(current\) => preserveShallowEqual\(current, nextProfile\)\)/,
|
||||
);
|
||||
assert.doesNotMatch(refresh, /setProfileDraft/);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user