Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Jul 2, 2024
1 parent 29a7a10 commit 1353899
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/world/ts/config/v2/worldWithShorthands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("defineWorldWithShorthands", () => {
it("should resolve namespaced shorthand table config with user types and enums", () => {
const config = defineWorldWithShorthands({
namespaces: {
ExampleNamespace: {
ExampleNS: {
tables: {
ExampleTable: "Static",
},
Expand All @@ -36,8 +36,8 @@ describe("defineWorldWithShorthands", () => {
...CONFIG_DEFAULTS,
codegen: CODEGEN_DEFAULTS,
tables: {
ExampleNamespace__ExampleTable: {
tableId: resourceToHex({ type: "table", namespace: "ExampleNamespace", name: "ExampleTable" }),
ExampleNS__ExampleTable: {
tableId: resourceToHex({ type: "table", namespace: "ExampleNS", name: "ExampleTable" }),
schema: {
id: {
type: "bytes32",
Expand All @@ -50,7 +50,7 @@ describe("defineWorldWithShorthands", () => {
},
key: ["id"],
name: "ExampleTable",
namespace: "ExampleNamespace",
namespace: "ExampleNS",
codegen: { ...TABLE_CODEGEN_DEFAULTS, dataStruct: false as boolean },
type: "table",
deploy: TABLE_DEPLOY_DEFAULTS,
Expand Down Expand Up @@ -78,7 +78,7 @@ describe("defineWorldWithShorthands", () => {
it("should resolve namespaced shorthand schema table config with user types and enums", () => {
const config = defineWorldWithShorthands({
namespaces: {
ExampleNamespace: {
ExampleNS: {
tables: {
ExampleTable: {
id: "Static",
Expand All @@ -101,8 +101,8 @@ describe("defineWorldWithShorthands", () => {
...CONFIG_DEFAULTS,
codegen: CODEGEN_DEFAULTS,
tables: {
ExampleNamespace__ExampleTable: {
tableId: resourceToHex({ type: "table", namespace: "ExampleNamespace", name: "ExampleTable" }),
ExampleNS__ExampleTable: {
tableId: resourceToHex({ type: "table", namespace: "ExampleNS", name: "ExampleTable" }),
schema: {
id: {
type: "address",
Expand All @@ -119,7 +119,7 @@ describe("defineWorldWithShorthands", () => {
},
key: ["id"],
name: "ExampleTable",
namespace: "ExampleNamespace",
namespace: "ExampleNS",
codegen: { ...TABLE_CODEGEN_DEFAULTS, dataStruct: true as boolean },
type: "table",
deploy: TABLE_DEPLOY_DEFAULTS,
Expand Down Expand Up @@ -358,7 +358,7 @@ describe("defineWorldWithShorthands", () => {
attest(() =>
defineWorldWithShorthands({
namespaces: {
ExampleNamespace: {
ExampleNS: {
tables: {
// @ts-expect-error Type '"number"' is not assignable to type 'AbiType'.
ExampleTable: "number",
Expand All @@ -373,7 +373,7 @@ describe("defineWorldWithShorthands", () => {
attest(() =>
defineWorldWithShorthands({
namespaces: {
ExampleNamespace: {
ExampleNS: {
// @ts-expect-error Type 'true' is not assignable to type '"`invalidProperty` is not a valid namespace config option.
invalidProperty: true,
},
Expand Down

0 comments on commit 1353899

Please sign in to comment.