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