Skip to content

Commit 6013083

Browse files
committed
fix failing tests
1 parent 5a8a377 commit 6013083

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

packages/backend/src/apps/formsg/__tests__/auth/decrypt-form-response.test.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -730,37 +730,37 @@ describe('decrypt form response', () => {
730730
rows: [
731731
{
732732
data: {
733-
[Buffer.from('Column 1').toString('hex')]: 'reading',
734-
[Buffer.from('Column 2').toString('hex')]: 'night',
733+
[Buffer.from('Col 1').toString('hex')]: 'reading',
734+
[Buffer.from('Col 2').toString('hex')]: 'night',
735735
},
736736
},
737737
{
738738
data: {
739-
[Buffer.from('Column 1').toString('hex')]: 'gaming',
740-
[Buffer.from('Column 2').toString('hex')]: 'weekend',
739+
[Buffer.from('Col 1').toString('hex')]: 'gaming',
740+
[Buffer.from('Col 2').toString('hex')]: 'weekend',
741741
},
742742
},
743743
{
744744
data: {
745-
[Buffer.from('Column 1').toString('hex')]: 'coding',
746-
[Buffer.from('Column 2').toString('hex')]: 'day',
745+
[Buffer.from('Col 1').toString('hex')]: 'coding',
746+
[Buffer.from('Col 2').toString('hex')]: 'day',
747747
},
748748
},
749749
],
750750
columns: [
751751
{
752-
id: Buffer.from('Column 1').toString('hex'),
753-
label: 'Column 1',
754-
name: 'Column 1',
755-
value: `data.rows.*.data.${Buffer.from('Column 1').toString(
752+
id: Buffer.from('Col 1').toString('hex'),
753+
label: 'Col 1',
754+
name: 'Col 1',
755+
value: `data.rows.*.data.${Buffer.from('Col 1').toString(
756756
'hex',
757757
)}`,
758758
},
759759
{
760-
id: Buffer.from('Column 2').toString('hex'),
761-
label: 'Column 2',
762-
name: 'Column 2',
763-
value: `data.rows.*.data.${Buffer.from('Column 2').toString(
760+
id: Buffer.from('Col 2').toString('hex'),
761+
label: 'Col 2',
762+
name: 'Col 2',
763+
value: `data.rows.*.data.${Buffer.from('Col 2').toString(
764764
'hex',
765765
)}`,
766766
},
@@ -828,31 +828,31 @@ describe('decrypt form response', () => {
828828
rows: [
829829
{
830830
data: {
831-
[Buffer.from('Column 1').toString('hex')]: 'reading',
832-
[Buffer.from('Column 2').toString('hex')]: 'night',
831+
[Buffer.from('Col 1').toString('hex')]: 'reading',
832+
[Buffer.from('Col 2').toString('hex')]: 'night',
833833
},
834834
},
835835
{
836836
data: {
837-
[Buffer.from('Column 1').toString('hex')]: 'gaming',
838-
[Buffer.from('Column 2').toString('hex')]: 'weekend',
837+
[Buffer.from('Col 1').toString('hex')]: 'gaming',
838+
[Buffer.from('Col 2').toString('hex')]: 'weekend',
839839
},
840840
},
841841
],
842842
columns: [
843843
{
844-
id: Buffer.from('Column 1').toString('hex'),
845-
label: 'Column 1',
846-
name: 'Column 1',
847-
value: `data.rows.*.data.${Buffer.from('Column 1').toString(
844+
id: Buffer.from('Col 1').toString('hex'),
845+
label: 'Col 1',
846+
name: 'Col 1',
847+
value: `data.rows.*.data.${Buffer.from('Col 1').toString(
848848
'hex',
849849
)}`,
850850
},
851851
{
852-
id: Buffer.from('Column 2').toString('hex'),
853-
label: 'Column 2',
854-
name: 'Column 2',
855-
value: `data.rows.*.data.${Buffer.from('Column 2').toString(
852+
id: Buffer.from('Col 2').toString('hex'),
853+
label: 'Col 2',
854+
name: 'Col 2',
855+
value: `data.rows.*.data.${Buffer.from('Col 2').toString(
856856
'hex',
857857
)}`,
858858
},

0 commit comments

Comments
 (0)