We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9d0ca1 commit d6f5d91Copy full SHA for d6f5d91
features/step_definitions/json_steps.ts
@@ -3,7 +3,6 @@ import path from "path";
3
import { promises as fs } from "fs";
4
import assert from "assert";
5
import child_process from "child_process";
6
-import { toByteArray } from "base64-js";
7
import { PNG } from "pngjs";
8
import { version as cypressVersion } from "cypress/package.json";
9
@@ -136,7 +135,7 @@ Then(
136
135
137
const png = await new Promise<PNG>((resolve, reject) => {
138
new PNG().parse(
139
- Buffer.from(toByteArray(embedding.data)),
+ Buffer.from(embedding.data, "base64"),
140
function (error, data) {
141
if (error) {
142
reject(error);
0 commit comments