From 9551dc4f83bb528e07f043a15d809fc504d04998 Mon Sep 17 00:00:00 2001 From: Arvind Satyanarayan Date: Thu, 7 Apr 2022 14:52:41 -0400 Subject: [PATCH] Fix runtime test for point selections --- package.json | 1 + test-runtime/discrete.test.ts | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 3adba34585..0853e92cc2 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ "watch": "tsc -p tsconfig.build.json -w", "watch:site": "yarn build:site -w", "watch:test": "yarn jest --watch test/", + "watch:test:runtime": "NODE_OPTIONS=--experimental-vm-modules TZ=America/Los_Angeles npx jest --watch test-runtime/ --config test-runtime/jest-config.json", "release": "yarn run prebuild && yarn build && auto shipit" }, "repository": { diff --git a/test-runtime/discrete.test.ts b/test-runtime/discrete.test.ts index 811afebf0b..2d0a4f3b0a 100644 --- a/test-runtime/discrete.test.ts +++ b/test-runtime/discrete.test.ts @@ -27,10 +27,7 @@ describe(`point selections at runtime in unit views`, () => { await embed(spec('unit', i, {type})); const store = await page.evaluate(pt('qq', i)); expect(store).toHaveLength(1); - expect(store[0].fields).toHaveLength(1); - expect(store[0].values).toHaveLength(1); - expect(store[0].fields[0].field).toEqual(SELECTION_ID); - expect(store[0].fields[0].type).toBe('E'); + expect(store[0]).toHaveProperty(SELECTION_ID); await testRender(`click_${i}`); } });