Skip to content

Commit 3b8e33e

Browse files
author
Thiago Bustamante
committed
fix snapshot
1 parent 4708969 commit 3b8e33e

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

test/unit/container/container-namespaces.spec.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('ContainerNamespaces', () => {
1717
const constructor = InjectorHandler.getConstructorFromType(MyType);
1818
const config = new IoCBindConfig(constructor, jest.fn(), jest.fn());
1919
namespaces.set(constructor, config);
20-
expect(namespaces.get(constructor, true)).toEqual(config);
20+
expect(namespaces.get(constructor)).toEqual(config);
2121
});
2222

2323
it('should retrieve a bindConfig for the current namespace', () => {
@@ -27,9 +27,9 @@ describe('ContainerNamespaces', () => {
2727
const namespaceName = 'newNamespace';
2828
namespaces.selectNamespace(namespaceName);
2929
namespaces.set(constructor, config);
30-
expect(namespaces.get(constructor, true)).toEqual(config);
30+
expect(namespaces.get(constructor)).toEqual(config);
3131
namespaces.removeNamespace(namespaceName);
32-
expect(namespaces.get(constructor, true)).toBeUndefined();
32+
expect(namespaces.get(constructor)).toBeUndefined();
3333
});
3434

3535
it('should retrieve a bindConfig from default namespace if does not exist in the current namespace', () => {
@@ -39,37 +39,37 @@ describe('ContainerNamespaces', () => {
3939
const namespaceName = 'newNamespace';
4040
namespaces.set(constructor, config);
4141
namespaces.selectNamespace(namespaceName);
42-
expect(namespaces.get(constructor, true)).toEqual(config);
42+
expect(namespaces.get(constructor)).toEqual(config);
4343
namespaces.removeNamespace(namespaceName);
44-
expect(namespaces.get(constructor, true)).toEqual(config);
44+
expect(namespaces.get(constructor)).toEqual(config);
4545
});
4646
});
4747

4848
describe('getValue()', () => {
4949
it('should retrieve a bindConfig for the default namespace', () => {
5050
const config = new IoCBindValueConfig('my-config');
5151
namespaces.setValue(config.name, config);
52-
expect(namespaces.getValue(config.name, true)).toEqual(config);
52+
expect(namespaces.getValue(config.name)).toEqual(config);
5353
});
5454

5555
it('should retrieve a bindConfig for the current namespace', () => {
5656
const config = new IoCBindValueConfig('my-config');
5757
const namespaceName = 'newNamespace';
5858
namespaces.selectNamespace(namespaceName);
5959
namespaces.setValue(config.name, config);
60-
expect(namespaces.getValue(config.name, true)).toEqual(config);
60+
expect(namespaces.getValue(config.name)).toEqual(config);
6161
namespaces.removeNamespace(namespaceName);
62-
expect(namespaces.getValue(config.name, true)).toBeUndefined();
62+
expect(namespaces.getValue(config.name)).toBeUndefined();
6363
});
6464

6565
it('should retrieve a bindConfig from default namespace if does not exist in the current namespace', () => {
6666
const config = new IoCBindValueConfig('my-config');
6767
const namespaceName = 'newNamespace';
6868
namespaces.setValue(config.name, config);
6969
namespaces.selectNamespace(namespaceName);
70-
expect(namespaces.getValue(config.name, true)).toEqual(config);
70+
expect(namespaces.getValue(config.name)).toEqual(config);
7171
namespaces.removeNamespace(namespaceName);
72-
expect(namespaces.getValue(config.name, true)).toEqual(config);
72+
expect(namespaces.getValue(config.name)).toEqual(config);
7373
});
7474
});
7575

@@ -79,11 +79,11 @@ describe('ContainerNamespaces', () => {
7979
const namespaceName = 'newNamespace';
8080
namespaces.selectNamespace(namespaceName);
8181
namespaces.setValue(config.name, config);
82-
expect(namespaces.getValue(config.name, true)).toEqual(config);
82+
expect(namespaces.getValue(config.name)).toEqual(config);
8383
namespaces.selectNamespace(null);
84-
expect(namespaces.getValue(config.name, true)).toBeUndefined();
84+
expect(namespaces.getValue(config.name)).toBeUndefined();
8585
namespaces.selectNamespace(namespaceName);
86-
expect(namespaces.getValue(config.name, true)).toEqual(config);
86+
expect(namespaces.getValue(config.name)).toEqual(config);
8787
});
8888
});
8989

0 commit comments

Comments
 (0)