mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
* Move ReadFile and WriteFile to separate file * Use libuv for Bun.write() * Update windows_event_loop.zig * build * Get bun-write tests to pass. Implement Bun.write with two files. * UPdate * Update * Update failing test list * update * More * More * More * More * Mark the rest * ok * oops * Update bun-write.test.js * Update blob.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Dave Caruso <me@paperdave.net> Co-authored-by: Georgijs Vilums <georgijs.vilums@gmail.com>
15 lines
480 B
JavaScript
15 lines
480 B
JavaScript
import jwt from "jsonwebtoken";
|
|
import { describe, it } from "bun:test";
|
|
|
|
describe("issue 70 - public key start with BEING PUBLIC KEY", function () {
|
|
it("should work", function (done) {
|
|
var fs = require("fs");
|
|
var cert_pub = fs.readFileSync(__dirname + "/rsa-public.pem");
|
|
var cert_priv = fs.readFileSync(__dirname + "/rsa-private.pem");
|
|
|
|
var token = jwt.sign({ foo: "bar" }, cert_priv, { algorithm: "RS256" });
|
|
|
|
jwt.verify(token, cert_pub, done);
|
|
});
|
|
});
|