cleanup, switch to attributes

This commit is contained in:
Matthew Penner 2023-01-17 16:09:28 -07:00
parent f631ac1946
commit ba7ff571e5
No known key found for this signature in database
9 changed files with 80 additions and 63 deletions

View file

@ -1,3 +1,5 @@
import { describe, expect, it } from 'vitest';
import { decodeBase64 } from '@/lib/base64';
describe('@/lib/base64.ts', function () {

View file

@ -1,4 +1,4 @@
function decodeBase64 (input: string): string {
function decodeBase64(input: string): string {
input = input.replace(/-/g, '+').replace(/_/g, '/');
const pad = input.length % 4;
@ -13,4 +13,4 @@ function decodeBase64 (input: string): string {
return input;
}
export { decodeBase64 }
export { decodeBase64 };

View file

@ -1,3 +1,5 @@
import { describe, expect, it } from 'vitest';
import { decodeBuffer, encodeBuffer } from '@/lib/buffer';
describe('@/lib/buffer.ts', function () {