Skip to content

Commit d9b0a37

Browse files
Jake ChampionJakeChampion
authored andcommitted
Fix tests to not throw errors when converting symbol to string
1 parent f541cb5 commit d9b0a37

File tree

1 file changed

+2
-2
lines changed
  • integration-tests/js-compute/fixtures/dynamic-backend/bin

1 file changed

+2
-2
lines changed

integration-tests/js-compute/fixtures/dynamic-backend/bin/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ routes.set('/', () => {
669669
const types = [{}, [], Symbol(), 1, "2"];
670670
for (const type of types) {
671671
let error = assertDoesNotThrow(() => {
672-
new Backend({ name: 'useSSL-property-valid-boolean' + type, target: 'a', useSSL: type })
672+
new Backend({ name: 'useSSL-property-valid-boolean' + String(type), target: 'a', useSSL: type })
673673
})
674674
if (error) { return error }
675675
}
@@ -871,7 +871,7 @@ routes.set('/', () => {
871871
const types = [{}, [], Symbol(), 1, "2"];
872872
for (const type of types) {
873873
let error = assertDoesNotThrow(() => {
874-
new Backend({ name: 'checkCertificate-property-valid-boolean' + type, target: 'a', checkCertificate: type })
874+
new Backend({ name: 'checkCertificate-property-valid-boolean' + String(type), target: 'a', checkCertificate: type })
875875
})
876876
if (error) { return error }
877877
}

0 commit comments

Comments
 (0)