-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(misc): update dependancies / clean (#3769)
* chore(misc): update dependancies / clean lint
- Loading branch information
Showing
27 changed files
with
673 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
const redis = jest.createMockFromModule("redis"); | ||
|
||
const data = {}; | ||
|
||
const mockRedis = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,7 +169,6 @@ describe("Meeting point", () => { | |
|
||
it("should return 500 when there's an error", async () => { | ||
const passport = require("passport"); | ||
const previous = passport.user; | ||
passport.user = null; | ||
jest.spyOn(LigneBusModel, "find").mockImplementation(() => { | ||
throw new Error("test error"); | ||
|
@@ -372,7 +371,7 @@ describe("Meeting point", () => { | |
}, | ||
}); | ||
|
||
const schemaRepartition = await SchemaRepartitionModel.create({ | ||
await SchemaRepartitionModel.create({ | ||
centerId: center._id, | ||
name: "Schema 1", | ||
fromRegion: "Île-de-France", | ||
|
@@ -381,7 +380,7 @@ describe("Meeting point", () => { | |
gatheringPlaces: [pdr1._id, pdr2._id], | ||
}); | ||
|
||
const young = await YoungModel.create({ | ||
await YoungModel.create({ | ||
firstName: "John", | ||
lastName: "Doe", | ||
email: "[email protected]", | ||
|
@@ -416,7 +415,6 @@ describe("Meeting point", () => { | |
it("should return 403 when user is not authorized", async () => { | ||
const young = await createYoungHelper({ ...getNewYoungFixture() }); | ||
const passport = require("passport"); | ||
const previous = passport.user; | ||
passport.user = young; | ||
const center = await CohesionCenterModel.create({ | ||
name: "Center 1", | ||
|
@@ -455,7 +453,6 @@ describe("Meeting point", () => { | |
|
||
it("should return 500 when there's an error", async () => { | ||
const passport = require("passport"); | ||
const previous = passport.user; | ||
passport.user = null; | ||
jest.spyOn(LigneBusModel, "findById").mockImplementation(() => { | ||
throw new Error("test error"); | ||
|
@@ -522,7 +519,6 @@ describe("Meeting point", () => { | |
|
||
it("should return 500 when there's an error", async () => { | ||
const passport = require("passport"); | ||
const previous = passport.user; | ||
passport.user = null; | ||
jest.spyOn(LigneBusModel, "findById").mockImplementation(() => { | ||
throw new Error("test error"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.