feat!: useShapeQuery prend le Scope du SDK, et un store se nomme par sa reference
This commit is contained in:
@@ -331,10 +331,10 @@ test("every announced-not-written annotation cites a record that is really here"
|
||||
});
|
||||
|
||||
test("announced-not-written accepts a statement on record and refuses every weaker form", () => {
|
||||
// The kind exists for a target ANNOUNCED and not yet written, so its first real
|
||||
// annotation cannot be in the tree to exercise it. This is that annotation written out
|
||||
// — the form `useShapeQuery` will carry — checked against the document that holds the
|
||||
// statement today.
|
||||
// The kind exists for a target ANNOUNCED and not yet written. The form below is the one
|
||||
// `useShapeQuery` carries in `surface/use-shape-query.ts` since `1.0.0-dev.5`, restated
|
||||
// here so the REFUSALS beneath it have something well-formed to depart from — and
|
||||
// checked against the document that holds the statement.
|
||||
const onRecord: Provenance = {
|
||||
name: "useShapeQuery",
|
||||
kind: ANNOUNCED,
|
||||
@@ -357,7 +357,7 @@ test("announced-not-written accepts a statement on record and refuses every weak
|
||||
// `ref=none` is what `invention` carries, and this kind is the opposite of invention.
|
||||
refused({ ref: "none" }, "must cite the record of the statement");
|
||||
// Our own source standing as the evidence for its own shape.
|
||||
refused({ ref: "packages/polyfill/src/surface/watch-shape.ts:useShapeQuery" }, "never a source file");
|
||||
refused({ ref: "packages/polyfill/src/surface/use-shape-query.ts:useShapeQuery" }, "never a source file");
|
||||
// An announcement names the layer that will carry the thing.
|
||||
refused({ level: "none" }, "level must be 1, 2 or 3");
|
||||
// And the evidence cannot be lifted onto a weaker claim to dress it up.
|
||||
|
||||
Reference in New Issue
Block a user