[MM-14093] Rename 'team' to 'server' and 'tab' to 'view' in most cases, some additional cleanup (#2711)
* Rename MattermostTeam -> UniqueServer, MattermostTab -> UniqueView * Rename 'team' to 'server' * Some further cleanup * Rename weirdly named function * Rename 'tab' to 'view' in most instances * Fix i18n * PR feedback
This commit is contained in:
@@ -95,9 +95,9 @@ describe('main/app/app', () => {
|
||||
const promise = Promise.resolve({});
|
||||
const certificate = {};
|
||||
const view = {
|
||||
tab: {
|
||||
view: {
|
||||
server: {
|
||||
name: 'test-team',
|
||||
name: 'test-server',
|
||||
url: new URL(testURL),
|
||||
},
|
||||
},
|
||||
@@ -163,7 +163,7 @@ describe('main/app/app', () => {
|
||||
expect(CertificateStore.save).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should load URL using MattermostView when trusting certificate', async () => {
|
||||
it('should load URL using MattermostBrowserView when trusting certificate', async () => {
|
||||
dialog.showMessageBox.mockResolvedValue({response: 0});
|
||||
await handleAppCertificateError(event, webContents, testURL, 'error-1', certificate, callback);
|
||||
expect(callback).toHaveBeenCalledWith(true);
|
||||
|
Reference in New Issue
Block a user