feat: app/ui project core (ported as is) and the Assets project list; features get named services; fixes a test that leaked a pending save into the next
This commit is contained in:
@@ -318,9 +318,10 @@ test("an edit made WHILE an import is in flight is still saved, against the old
|
||||
|
||||
await new Promise((r) => setTimeout(r, 700)); // past the real debounce window
|
||||
|
||||
assert.equal(sent.length, 1, "the edit made during the import never reached the server");
|
||||
assert.equal(sent[0].id, "abcdef012345", "saved against the OLD project, not the one now open");
|
||||
assert.equal(sent[0].name, "Typed while importing");
|
||||
// Only this edit's own PUT: an earlier test's still-pending debounce can fire into this fetch too.
|
||||
const mine = sent.filter((body) => body.name === "Typed while importing");
|
||||
assert.equal(mine.length, 1, "the edit made during the import never reached the server");
|
||||
assert.equal(mine[0].id, "abcdef012345", "saved against the OLD project, not the one now open");
|
||||
});
|
||||
|
||||
test("two imports racing land on whichever was clicked last, not whichever answered last", async () => {
|
||||
|
||||
Reference in New Issue
Block a user