We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 595fee3 commit 99cced0Copy full SHA for 99cced0
packages/data-connect/test/unit/fetch.test.ts
@@ -115,9 +115,9 @@ describe('fetch', () => {
115
let expectedHeaderRegex: RegExp;
116
if (callerSdkType === CallerSdkTypeEnum.Base) {
117
// should not contain any "js/xxx" substring
118
- expectedHeaderRegex = RegExp(`^((?!js\/\w).)*$`);
+ expectedHeaderRegex = RegExp(/^((?!js\/\w).)*$/);
119
} else if (callerSdkType === CallerSdkTypeEnum.Generated) {
120
- expectedHeaderRegex = RegExp(`js\/gen`);
+ expectedHeaderRegex = RegExp(/js\/gen/);
121
} else {
122
expectedHeaderRegex = RegExp(`js\/${callerSdkType.toLowerCase()}`);
123
}
0 commit comments