Notification token on Windows
This commit is contained in:
parent
74acb3a2dd
commit
22d30ec4eb
10 changed files with 142 additions and 122 deletions
|
@ -186,37 +186,23 @@ describe('signalRoutes', () => {
|
|||
|
||||
it('showConversation', () => {
|
||||
const check = createCheck({ isRoute: true, hasWebUrl: false });
|
||||
const args1 = `conversationId=${foo}`;
|
||||
const args2 = `conversationId=${foo}&messageId=${foo}`;
|
||||
const args3 = `conversationId=${foo}&messageId=${foo}&storyId=${foo}`;
|
||||
const args1 = `token=${foo}`;
|
||||
const result1: ParsedSignalRoute = {
|
||||
key: 'showConversation',
|
||||
args: { conversationId: foo, messageId: null, storyId: null },
|
||||
};
|
||||
const result2: ParsedSignalRoute = {
|
||||
key: 'showConversation',
|
||||
args: { conversationId: foo, messageId: foo, storyId: null },
|
||||
};
|
||||
const result3: ParsedSignalRoute = {
|
||||
key: 'showConversation',
|
||||
args: { conversationId: foo, messageId: foo, storyId: foo },
|
||||
args: { token: foo },
|
||||
};
|
||||
check(`sgnl://show-conversation/?${args1}`, result1);
|
||||
check(`sgnl://show-conversation?${args1}`, result1);
|
||||
check(`sgnl://show-conversation/?${args2}`, result2);
|
||||
check(`sgnl://show-conversation?${args2}`, result2);
|
||||
check(`sgnl://show-conversation/?${args3}`, result3);
|
||||
check(`sgnl://show-conversation?${args3}`, result3);
|
||||
});
|
||||
|
||||
it('startCallLobby', () => {
|
||||
const result: ParsedSignalRoute = {
|
||||
key: 'startCallLobby',
|
||||
args: { conversationId: foo },
|
||||
args: { token: foo },
|
||||
};
|
||||
const check = createCheck({ isRoute: true, hasWebUrl: false });
|
||||
check(`sgnl://start-call-lobby/?conversationId=${foo}`, result);
|
||||
check(`sgnl://start-call-lobby?conversationId=${foo}`, result);
|
||||
check(`sgnl://start-call-lobby/?token=${foo}`, result);
|
||||
check(`sgnl://start-call-lobby?token=${foo}`, result);
|
||||
});
|
||||
|
||||
it('showWindow', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue