Skip to content

Commit

Permalink
Fix runtime test for point selections
Browse files Browse the repository at this point in the history
  • Loading branch information
arvind committed Apr 7, 2022
1 parent 1784b02 commit 9551dc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -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": {
Expand Down
5 changes: 1 addition & 4 deletions test-runtime/discrete.test.ts
Expand Up @@ -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}`);
}
});
Expand Down

0 comments on commit 9551dc4

Please sign in to comment.