Skip to content

Commit 51a0ba7

Browse files
committed
Fix tests
1 parent d100c19 commit 51a0ba7

3 files changed

+3
-3
lines changed

__tests__/html/metaTag.directLine.es5.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
run(async function () {
1313
const directLine = WebChat.createDirectLine({});
1414

15-
expect(directLine.botAgent).toBe(`WebChat/${WebChatFull.version} (ES5)`);
15+
expect(directLine.botAgent).toMatch(/^WebChat\/\d+\.\d+\.\d+(-[^\s]+)? \(ES5\)$/u);
1616
});
1717
</script>
1818
</body>

__tests__/html/metaTag.directLine.full.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
run(async function () {
1313
const directLine = WebChat.createDirectLine({});
1414

15-
expect(directLine.botAgent).toBe(`WebChat/${WebChatFull.version} (Minimal)`);
15+
expect(directLine.botAgent).toMatch(/^WebChat\/\d+\.\d+\.\d+(-[^\s]+)? \(Full\)$/u);
1616
});
1717
</script>
1818
</body>

__tests__/html/metaTag.directLine.minimal.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
run(async function () {
1313
const directLine = WebChat.createDirectLine({});
1414

15-
expect(directLine.botAgent).toBe(`WebChat/${WebChatFull.version} (Full)`);
15+
expect(directLine.botAgent).toMatch(/^WebChat\/\d+\.\d+\.\d+(-[^\s]+)? \(Minimal\)$/u);
1616
});
1717
</script>
1818
</body>

0 commit comments

Comments
 (0)