2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/frappe/tests/test_models.js
2018-01-02 15:40:32 +05:30

14 lines
315 B
JavaScript

const assert = require('assert');
const frappe = require('frappe-core');
describe('Models', () => {
before(async function() {
await frappe.init();
await frappe.db.migrate();
});
it('should get todo json', () => {
let todo = frappe.models.get('DocType', 'ToDo');
assert.equal(todo.issingle, 0);
});
});