mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
13 lines
412 B
TypeScript
13 lines
412 B
TypeScript
import { RecordObject } from '../../../src/util/RecordObject';
|
|
|
|
describe('RecordObject', (): void => {
|
|
it('returns an empty record when created without parameters.', async(): Promise<void> => {
|
|
expect(new RecordObject()).toStrictEqual({});
|
|
});
|
|
|
|
it('returns the passed record.', async(): Promise<void> => {
|
|
const record = { abc: 'def' };
|
|
expect(new RecordObject(record)).toBe(record);
|
|
});
|
|
});
|