Update packages/jspsych/tests/data/datacollection.test.ts

Co-authored-by: bjoluc <mail@bjoluc.de>
This commit is contained in:
Josh de Leeuw 2022-03-11 12:10:02 -05:00 committed by GitHub
parent 4eb61c3e19
commit 594a7708f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,11 +41,10 @@ describe("DataCollection", () => {
const filtered_data = dataCollection.filterColumns(["rt", "foo"]);
expect(
filtered_data.values().filter((x) => {
return x.foo && x.rt && !x.filter;
}).length
).toBe(5);
expect(filtered_data.values()).toEqual([
{ foo: "bar", rt: 100 },
{ foo: "bar", rt: 200 },
]);
});
test("ignore", () => {