Skip to content

Commit

Permalink
updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kanekotic committed Dec 1, 2019
1 parent 13995ef commit 36ab5ba
Show file tree
Hide file tree
Showing 3 changed files with 2,244 additions and 1,770 deletions.
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,27 @@
"repository": "[email protected]:tarantx/tarant-sync-router-express.git",
"license": "MIT",
"devDependencies": {
"@types/express": "4.16.0",
"@types/faker": "4.1.4",
"@types/jest": "23.3.10",
"@types/node": "10.12.18",
"body-parser": "1.18.3",
"coveralls": "3.0.2",
"@types/express": "4.17.2",
"@types/faker": "4.1.8",
"@types/jest": "24.0.23",
"@types/node": "12.12.14",
"body-parser": "1.19.0",
"coveralls": "3.0.9",
"faker": "4.1.0",
"jest": "23.6.0",
"nodemon": "1.18.10",
"prettier": "1.15.3",
"supertest": "3.3.0",
"ts-jest": "23.10.5",
"tslint": "5.12.0",
"tslint-config-prettier": "1.17.0",
"typescript": "3.2.2"
"jest": "24.9.0",
"nodemon": "2.0.1",
"prettier": "1.19.1",
"supertest": "4.0.2",
"ts-jest": "24.2.0",
"tslint": "5.20.1",
"tslint-config-prettier": "1.18.0",
"typescript": "3.7.2"
},
"dependencies": {
"@types/supertest": "^2.0.7",
"express": "4.16.4",
"tarant": "2.6.2",
"tslib": "1.9.3"
"@types/supertest": "^2.0.8",
"express": "4.17.1",
"tarant": "2.7.2",
"tslib": "1.10.0"
},
"jest": {
"preset": "ts-jest"
Expand Down
12 changes: 6 additions & 6 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ describe('index exports function that returns express router', () => {
it('should pull actor data if found', async () => {
const id = faker.random.uuid(),
expectedresult = { stuff: faker.random.uuid() },
ActorSystemMock = {
ActorSystemMock: any = {
actorFor: jest.fn(),
}

let system: ActorSystem = jest.fn<ActorSystem>(() => ActorSystemMock)()
let system: ActorSystem = jest.fn<ActorSystem, []>(() => ActorSystemMock)()
setupController(system)
ActorSystemMock.actorFor.mockResolvedValue({
toJson: () => Promise.resolve(expectedresult),
Expand All @@ -54,11 +54,11 @@ describe('index exports function that returns express router', () => {

it('should return 404 if unable to find actor', async () => {
const id = faker.random.uuid(),
ActorSystemMock = {
ActorSystemMock: any = {
actorFor: jest.fn(),
}

let system: ActorSystem = jest.fn<ActorSystem>(() => ActorSystemMock)()
let system: ActorSystem = jest.fn<ActorSystem, []>(() => ActorSystemMock)()
setupController(system)
ActorSystemMock.actorFor.mockRejectedValue('')

Expand All @@ -73,14 +73,14 @@ describe('index exports function that returns express router', () => {
it('should update state of an actor', async () => {
const id = faker.random.uuid(),
body = { stuff: faker.random.uuid(), type: 'FakeActor' },
ActorSystemMock = {
ActorSystemMock: any = {
resolveOrNew: jest.fn(),
},
ActorMock = {
updateFrom: jest.fn(),
}

let system: ActorSystem = jest.fn<ActorSystem>(() => ActorSystemMock)()
let system: ActorSystem = jest.fn<ActorSystem, []>(() => ActorSystemMock)()
setupController(system)
ActorSystemMock.resolveOrNew.mockResolvedValue(ActorMock)

Expand Down
Loading

0 comments on commit 36ab5ba

Please sign in to comment.