mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
14 lines
315 B
JavaScript
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);
|
|
});
|
|
}); |