feat: Add slashcommand api
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import {
|
||||
describe,
|
||||
expect,
|
||||
it
|
||||
} from 'vitest';
|
||||
|
||||
import { decodeBase64ToUint8Array } from './attachment-blob.rules';
|
||||
|
||||
@@ -6,6 +10,10 @@ describe('attachment blob rules', () => {
|
||||
it('decodes base64 payloads into byte arrays', () => {
|
||||
const bytes = decodeBase64ToUint8Array('QUJD');
|
||||
|
||||
expect(Array.from(bytes)).toEqual([65, 66, 67]);
|
||||
expect(Array.from(bytes)).toEqual([
|
||||
65,
|
||||
66,
|
||||
67
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user