Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jhthorsen committed Mar 18, 2024
1 parent 1ae64c6 commit 7bd20d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/chatHelpers.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Conversation from '../assets/store/Conversation';
import Time from '../assets/js/Time';
import {conversationUrl, onInfinityVisibility} from '../assets/js/chatHelpers';
import {expect, test} from 'vitest';
import {describe, expect, test} from 'vitest';

window.open = (url, name) => {
const w = {opened: true, events: {}, name, url};
Expand All @@ -10,7 +10,7 @@ window.open = (url, name) => {
return w;
};

test('onInfinityVisibility - load enough messages', () => {
describe('onInfinityVisibility - load enough messages', () => {
const conversation = new Conversation({connection_id: 'irc-foo', conversation_id: '#convos'});

conversation.update({status: 'success'});
Expand All @@ -34,7 +34,7 @@ test('onInfinityVisibility - load enough messages', () => {
});
});

test('conversationUrl', () => {
describe('conversationUrl', () => {
test('conversationUrl', () => {
const ts = new Time('1983-02-24T05:06:07Z');
expect(conversationUrl({connection_id: 'irc-foo', ts})).toBe('/chat/irc-foo#1983-02-24T05:06:07.000Z');
Expand Down

0 comments on commit 7bd20d0

Please sign in to comment.