DocumentsStore WIP
This commit is contained in:
13
frontend/models/Document.test.js
Normal file
13
frontend/models/Document.test.js
Normal file
@ -0,0 +1,13 @@
|
||||
/* eslint-disable */
|
||||
import Document from './Document';
|
||||
|
||||
describe('Document model', () => {
|
||||
test('should initialize with data', () => {
|
||||
const document = new Document({
|
||||
id: 123,
|
||||
title: 'Onboarding',
|
||||
text: 'Some body text'
|
||||
});
|
||||
expect(document.title).toBe('Onboarding');
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user