Skip to content

Commit

Permalink
Fix type type error in bigint test (#1229)
Browse files Browse the repository at this point in the history
Signed-off-by: Sri Krishna Paritala <skrishna@buf.build>
  • Loading branch information
srikrsna-buf committed Sep 13, 2024
1 parent cabda22 commit 7ca8eac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/connect-web/browserstack/bigint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import { create, fromBinary, toBinary } from "@bufbuild/protobuf";
import { create, fromBinary, protoInt64, toBinary } from "@bufbuild/protobuf";
import { Int64ValueSchema } from "@bufbuild/protobuf/wkt";

describe("bigint", () => {
Expand All @@ -23,8 +23,7 @@ describe("bigint", () => {
Int64ValueSchema,
toBinary(
Int64ValueSchema,
//@ts-expect-error TODO: fix the typescript error.
create(Int64ValueSchema, { value: "3409819015" }),
create(Int64ValueSchema, { value: protoInt64.parse("3409819015") }),
),
).value,
),
Expand Down

0 comments on commit 7ca8eac

Please sign in to comment.