-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove lodash dependencies & general housekeeping
- Loading branch information
Brian Faust
committed
Sep 16, 2019
1 parent
08ca0fa
commit 3c12f5a
Showing
86 changed files
with
774 additions
and
2,153 deletions.
There are no files selected for viewing
12 changes: 2 additions & 10 deletions
12
__tests__/unit/core-kernel/services/actions/service-provider.test.ts
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
16 changes: 6 additions & 10 deletions
16
__tests__/unit/core-kernel/services/cache/service-provider.test.ts
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,27 +1,23 @@ | ||
import "jest-extended"; | ||
|
||
import { Application } from "@packages/core-kernel/src/application"; | ||
import { Container, interfaces, Identifiers } from "@packages/core-kernel/src/ioc"; | ||
import { Container, Identifiers } from "@packages/core-kernel/src/ioc"; | ||
import { ServiceProvider } from "@packages/core-kernel/src/services/cache"; | ||
import { MemoryCacheStore } from "@packages/core-kernel/src/services/cache/drivers/memory"; | ||
|
||
let app: Application; | ||
let container: interfaces.Container; | ||
|
||
beforeEach(() => { | ||
container = new Container(); | ||
container.snapshot(); | ||
|
||
app = new Application(container); | ||
}); | ||
|
||
afterEach(() => container.restore()); | ||
beforeEach(() => (app = new Application(new Container()))); | ||
|
||
describe("CacheServiceProvider", () => { | ||
it(".register", async () => { | ||
expect(app.isBound(Identifiers.CacheManager)).toBeFalse(); | ||
expect(app.isBound(Identifiers.CacheService)).toBeFalse(); | ||
|
||
await app.resolve<ServiceProvider>(ServiceProvider).register(); | ||
|
||
expect(app.isBound(Identifiers.CacheManager)).toBeTrue(); | ||
expect(app.isBound(Identifiers.CacheService)).toBeTrue(); | ||
expect(app.get(Identifiers.CacheService)).toBeInstanceOf(MemoryCacheStore); | ||
}); | ||
}); |
12 changes: 2 additions & 10 deletions
12
__tests__/unit/core-kernel/services/events/service-provider.test.ts
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
12 changes: 2 additions & 10 deletions
12
__tests__/unit/core-kernel/services/filesystem/service-provider.test.ts
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
12 changes: 2 additions & 10 deletions
12
__tests__/unit/core-kernel/services/queue/service-provider.test.ts
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
12 changes: 2 additions & 10 deletions
12
__tests__/unit/core-kernel/services/schedule/service-provider.test.ts
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
12 changes: 2 additions & 10 deletions
12
__tests__/unit/core-kernel/services/validation/service-provider.test.ts
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 was deleted.
Oops, something went wrong.
52 changes: 39 additions & 13 deletions
52
__tests__/unit/core-kernel/utils/delegate-calculator.test.ts
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
20 changes: 0 additions & 20 deletions
20
__tests__/unit/core-kernel/utils/has-some-property.test.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.