refactor: 💡 window postmessage pattern -> contextbridge boundary api (#3167)
* refactor: 💡 postmessage pattern -> contextbridge boundary api * refactor: 💡 use sinon stub for boundary api mock test helper * refactor: 💡 updated tests * refactor: 💡 renamed boundary mock api * chore: 🤖 addressed feedback * refactor: 💡 updated context bridge name, added nested objects
This commit is contained in:
1 parent
eba17d3c71
commit
392e49bf49
45 files changed
+744
-1062
No files matched your search
@@ -8,7 +8,7 @@ import { setupTest } from 'ember-qunit';
|
||||
import { setupMirage } from 'desktop/tests/helpers/mirage';
|
||||
import { visit, currentURL, settled } from '@ember/test-helpers';
|
||||
import { setupIntl } from 'ember-intl/test-support';
|
||||
import WindowMockIPC from '../../../../../../helpers/window-mock-ipc';
|
||||
import { setupDesktopContextBridgeApiMock } from '../../../../../../helpers/desktop-context-bridge-api-mock';
|
||||
|
||||
module(
|
||||
'Unit | Controller | scopes/scope/authenticate/method/index',
|
||||
@@ -16,6 +16,7 @@ module(
|
||||
setupTest(hooks);
|
||||
setupMirage(hooks);
|
||||
setupIntl(hooks, 'en-us');
|
||||
setupDesktopContextBridgeApiMock(hooks);
|
||||
|
||||
let controller;
|
||||
let store;
|
||||
@@ -57,7 +58,6 @@ module(
|
||||
|
||||
urls.targets = '/scopes/global/projects/targets';
|
||||
|
||||
this.owner.register('service:browser/window', WindowMockIPC);
|
||||
setDefaultClusterUrl(this);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user