Changeset View
Changeset View
Standalone View
Standalone View
lib/app/base-chips/access-strategy-types/when.subtest.js
const locreq = require("locreq")(__dirname); | const locreq = require("locreq")(__dirname); | ||||
const assert = require("assert"); | const assert = require("assert"); | ||||
const { with_stopped_app } = locreq("test_utils/with-test-app.js"); | const { with_stopped_app } = locreq("test_utils/with-test-app.js"); | ||||
const assert_throws_async = locreq("test_utils/assert_throws_async.js"); | |||||
describe("when", () => { | describe("when", () => { | ||||
async function create_resources(app) { | async function create_resources(app) { | ||||
app.createChip(app.Sealious.Collection, { | app.createChip(app.Sealious.Collection, { | ||||
name: "numbers", | name: "numbers", | ||||
fields: [{ name: "number", type: "int" }], | fields: [{ name: "number", type: "int" }], | ||||
named_filters: { | named_filters: { | ||||
positive: app.SpecialFilter.Matches({ number: { ">": 0 } }), | positive: app.SpecialFilter.Matches({ number: { ">": 0 } }), | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |