mirror of
https://github.com/frappe/books.git
synced 2024-11-13 00:46:28 +00:00
14 lines
297 B
JavaScript
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);
|
|
});
|
|
}); |