{"size": 400, "ext": "js", "max_stars_repo_path": "backend/tests/unit/db.test.js", "max_stars_repo_name": "DaCurse/Magshimim-LiveDocs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "backend/tests/unit/db.test.js", "max_issues_repo_name": "DaCurse/Magshimim-LiveDocs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "backend/tests/unit/db.test.js", "max_forks_repo_name": "DaCurse/Magshimim-LiveDocs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.2222222222, "max_line_length": 47, "alphanum_fraction": 0.6075}
const models = require('../../models');

describe('Sequelize initialization', () => {
	it('Returns the document model', () => {
		expect(models.Document).toBeTruthy();
	});
});

describe('Model creation', () => {
	it('Creates a document', async () => {
		let document = await models.Document.create({
			title: 'test',
			content: 'Hello World',
		});
		expect(document.title).toBe('test');
	});
});
