Skip to content

Commit

Permalink
fix: prettier errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianMazur committed Jan 11, 2024
1 parent cd05596 commit 1d386a9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .mocharc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (env.TEST === undefined || env.TEST === "all") {
spec = ["./src/**/*.test.js", "tests/**/*.test.js"]
}

if (env.TEST === 'e2e') {
if (env.TEST === "e2e") {
spec = ["tests/end-to-end/**/*.test.js"]
}

Expand Down
20 changes: 10 additions & 10 deletions tests/end-to-end/responses/bodyType.test.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import assert from 'node:assert'
import { join } from 'desm'
import { BASE_URL } from '../../config.js'
import { setup, teardown } from '../../_testHelpers/index.js'
import assert from "node:assert"
import { join } from "desm"
import { BASE_URL } from "../../config.js"
import { setup, teardown } from "../../_testHelpers/index.js"

describe('responses', function desc() {
describe("responses", function desc() {
beforeEach(() =>
setup({
servicePath: join(import.meta.url, 'src'),
servicePath: join(import.meta.url, "src"),
}),
)

afterEach(() => teardown())

describe('When responses property is used without default key', () => {
it('should return correct payload', async () => {
const url = new URL('/dev/products', BASE_URL)
describe("When responses property is used without default key", () => {
it("should return correct payload", async () => {
const url = new URL("/dev/products", BASE_URL)
const response = await fetch(url)
const json = await response.json()

assert.deepEqual(json, {
foo: 'bar',
foo: "bar",
})
})
})
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/responses/src/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { stringify } = JSON
export const hello = async () => {
return {
body: stringify({
foo: 'bar',
foo: "bar",
}),
statusCode: 200,
}
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/responses/src/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
service: uncategorized-tests

frameworkVersion: '3'
frameworkVersion: "3"

plugins:
- ../../../../src/index.js
Expand Down

0 comments on commit 1d386a9

Please sign in to comment.