feat: Implement API Token model
This commit is contained in:
12
packages/backend/src/models/api-token.test.js
Normal file
12
packages/backend/src/models/api-token.test.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import ApiToken from './api-token.js';
|
||||
|
||||
describe('ApiToken model', () => {
|
||||
it('tableName should return correct name', () => {
|
||||
expect(ApiToken.tableName).toBe('api_tokens');
|
||||
});
|
||||
|
||||
it('jsonSchema should have correct validations', () => {
|
||||
expect(ApiToken.jsonSchema).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user