cleanup, switch to attributes
This commit is contained in:
parent
f631ac1946
commit
ba7ff571e5
9 changed files with 80 additions and 63 deletions
|
@ -1,3 +1,5 @@
|
|||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { decodeBase64 } from '@/lib/base64';
|
||||
|
||||
describe('@/lib/base64.ts', function () {
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { decodeBuffer, encodeBuffer } from '@/lib/buffer';
|
||||
|
||||
describe('@/lib/buffer.ts', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue