Skip to content

Commit 5436055

Browse files
TurtlepawCopilot
andauthored
fix: convert to proper encoding
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8bae58f commit 5436055

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/utils/test-env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class TestEnvironment {
126126
hideSTARTTLS: true,
127127
onData: (stream, session, callback) => {
128128
let emailData = "";
129-
stream.on("data", (chunk) => emailData += chunk);
129+
stream.on("data", (chunk) => emailData += chunk.toString('utf8'));
130130
stream.on("end", () => {
131131
const $ = cheerio.load(emailData);
132132
const codeEl = $("code").first();

0 commit comments

Comments
 (0)