rename data -> structures
This commit is contained in:
parent
befb61c915
commit
cd0e37d2c1
4 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
|
@ -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)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue