2
0
mirror of https://github.com/frappe/books.git synced 2024-11-13 00:46:28 +00:00
books/frappe/tests/test_models.js
2018-01-01 15:58:30 +05:30

14 lines
297 B
JavaScript

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