Skip to content

Commit ae809a2

Browse files
committed
nits
1 parent 86a806c commit ae809a2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/server/saved_objects/service/lib/repository.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ describe('SavedObjectsRepository', () => {
207207
}
208208
const namespaceId = namespaces[0] === 'default' ? undefined : namespaces[0];
209209

210-
// const namespaceId = objectNamespace === 'default' ? undefined : objectNamespace ?? namespace;
211210
return {
212211
// NOTE: Elasticsearch returns more fields (_index, _type) but the SavedObjectsRepository method ignores these
213212
found: true,
@@ -790,7 +789,7 @@ describe('SavedObjectsRepository', () => {
790789
});
791790
});
792791

793-
it(`returns error when there is a conflict with an existing multi-namespace saved object with initialNamespaces (get)`, async () => {
792+
it(`returns error when there is an unresolvable conflict with an existing multi-namespace saved object when using initialNamespaces (get)`, async () => {
794793
const obj = {
795794
...obj3,
796795
type: MULTI_NAMESPACE_TYPE,
@@ -2220,7 +2219,7 @@ describe('SavedObjectsRepository', () => {
22202219
expect(client.get).toHaveBeenCalled();
22212220
});
22222221

2223-
it(`throws when there is a conflict with an existing multi-namespace saved object when using initialNamespaces (get)`, async () => {
2222+
it(`throws when there is an unresolvable conflict with an existing multi-namespace saved object when using initialNamespaces (get)`, async () => {
22242223
const response = getMockGetResponse({ type: MULTI_NAMESPACE_ISOLATED_TYPE, id }, namespace);
22252224
client.get.mockResolvedValueOnce(
22262225
elasticsearchClientMock.createSuccessTransportRequestPromise(response)

0 commit comments

Comments
 (0)