Skip to content

Commit

Permalink
Fix test pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
macmv committed Sep 13, 2024
1 parent 7e1d513 commit 17810b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/commands/eval.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ describe("eval", () => {
});

describe("eval in v10", () => {
it("runs eval", async () => {
it("runs eval in shell format", async () => {
const { stdout } = await runCommand(
withOpts([
"eval",
"\"{ exists: Collection.byName('doesnt_exist').exists() }\"",
"--format",
"shell",
])
);
expect(stdout).to.equal("{\n exists: false\n}\n");
Expand Down Expand Up @@ -182,7 +184,7 @@ function mockQuery(api) {
.post("/", matchFqlReq(q.Now()))
.reply(200, { resource: new Date() })
.post("/", matchFqlReq(q.Paginate(q.Collections())))
.reply(200, function () {
.reply(200, function() {
const auth = this.req.headers.authorization.split(" ")[1].split(":");
expect(this.req.headers["x-fauna-shell-builtin"]).to.not.exist;
return {
Expand Down

0 comments on commit 17810b8

Please sign in to comment.