Skip to content

Commit

Permalink
fix(audits/server): Better "must accept UTF-8" test with emoji (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Mar 29, 2023
1 parent 5ccedd7 commit a322d2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/audits/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
headers: {
'content-type': 'application/json; charset=utf-8',
},
body: JSON.stringify({ query: '{ __typename }' }),
body: JSON.stringify({
query: '{ __type(name: "Run🏃Swim🏊") { name } }',
}),
});

ressert(res).status.toBe(200);
Expand Down

0 comments on commit a322d2c

Please sign in to comment.