1
0
Fork 0
mirror of synced 2024-08-15 18:11:40 +12:00

rename data -> structures

This commit is contained in:
Rory Powell 2022-04-06 22:00:10 +01:00
parent befb61c915
commit cd0e37d2c1
4 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
const mocks = require("./mocks") const mocks = require("./mocks")
const data = require("./data") const structures = require("./structures")
module.exports = { module.exports = {
mocks, mocks,
data, structures,
} }

View file

@ -1,8 +1,8 @@
require("../mocks") require("../mocks")
const koa = require("./koa") const koa = require("./koa")
const data = { const structures = {
koa, koa,
} }
module.exports = data module.exports = structures

View file

@ -1,11 +1,11 @@
const { data } = require("./utilities") const { structures } = require("./utilities")
const utils = require("../utils") const utils = require("../utils")
const events = require("../events") const events = require("../events")
describe("utils", () => { describe("utils", () => {
describe("platformLogout", () => { describe("platformLogout", () => {
it("should call platform logout", async () => { it("should call platform logout", async () => {
const ctx = data.koa.newContext() const ctx = structures.koa.newContext()
await utils.platformLogout({ ctx, userId: "test" }) await utils.platformLogout({ ctx, userId: "test" })
expect(events.auth.logout.mock.calls.length).toBe(1) expect(events.auth.logout.mock.calls.length).toBe(1)
}) })