Skip to content

Commit b792414

Browse files
committed
Update tests
1 parent a019695 commit b792414

7 files changed

Lines changed: 4 additions & 124 deletions

__tests__/html/metaTag.webChat.es5.html

Lines changed: 0 additions & 35 deletions
This file was deleted.

__tests__/html/metaTag.webChat.es5.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

__tests__/html/metaTag.webChat.full.html

Lines changed: 0 additions & 35 deletions
This file was deleted.

__tests__/html/metaTag.webChat.full.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

__tests__/html/metaTag.webChat.minimal.html

Lines changed: 0 additions & 35 deletions
This file was deleted.

__tests__/html/metaTag.webChat.minimal.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

__tests__/html2/boot/bundle.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,29 @@
4444
expect(metaMap.get('botframework-webchat:api')).toEqual(expect.stringContaining('build-tool=tsup'));
4545
expect(metaMap.get('botframework-webchat:api')).toEqual(expect.stringContaining('module-format='));
4646
expect(metaMap.get('botframework-webchat:api')).toEqual(expect.stringContaining('version='));
47-
expect(metaMap.has('botframework-webchat:api:version')).toBe(true);
47+
expect(metaMap.get('botframework-webchat:api:version')).toEqual(expect.stringMatching(/^\d+\.\d+\.\d+($|-)/u));
4848

4949
// THEN: It should have `<meta name="botframework-webchat">`.
5050
expect(metaMap.has('botframework-webchat')).toBe(true);
5151
expect(metaMap.get('botframework-webchat')).toEqual(expect.stringContaining('build-tool=tsup'));
5252
expect(metaMap.get('botframework-webchat')).toEqual(expect.stringContaining('module-format=global'));
5353
expect(metaMap.get('botframework-webchat')).toEqual(expect.stringContaining(`variant=${variant}`));
5454
expect(metaMap.get('botframework-webchat')).toEqual(expect.stringContaining('version='));
55-
expect(metaMap.has('botframework-webchat:version')).toBe(true);
55+
expect(metaMap.get('botframework-webchat:version')).toEqual(expect.stringMatching(/^\d+\.\d+\.\d+($|-)/u));
5656

5757
// THEN: It should have `<meta name="botframework-webchat:component">`.
5858
expect(metaMap.has('botframework-webchat:component')).toBe(true);
5959
expect(metaMap.get('botframework-webchat:component')).toEqual(expect.stringContaining('build-tool=tsup'));
6060
expect(metaMap.get('botframework-webchat:component')).toEqual(expect.stringContaining('module-format='));
6161
expect(metaMap.get('botframework-webchat:component')).toEqual(expect.stringContaining('version='));
62-
expect(metaMap.has('botframework-webchat:component:version')).toBe(true);
62+
expect(metaMap.get('botframework-webchat:component:version')).toEqual(expect.stringMatching(/^\d+\.\d+\.\d+($|-)/u));
6363

6464
// THEN: It should have `<meta name="botframework-webchat:core">`.
6565
expect(metaMap.has('botframework-webchat:core')).toBe(true);
6666
expect(metaMap.get('botframework-webchat:core')).toEqual(expect.stringContaining('build-tool=tsup'));
6767
expect(metaMap.get('botframework-webchat:core')).toEqual(expect.stringContaining('module-format='));
6868
expect(metaMap.get('botframework-webchat:core')).toEqual(expect.stringContaining('version='));
69-
expect(metaMap.has('botframework-webchat:core:version')).toBe(true);
69+
expect(metaMap.get('botframework-webchat:core:version')).toEqual(expect.stringMatching(/^\d+\.\d+\.\d+($|-)/u));
7070

7171
// THEN: `window.WebChat` should be a plain object.
7272
expect(typeof WebChat).toBe('object');

0 commit comments

Comments
 (0)