2
0
mirror of https://github.com/frappe/books.git synced 2025-01-23 15:18:24 +00:00
books/frappe/tests/test_models.js
2018-01-03 12:20:07 +05:30

14 lines
332 B
JavaScript

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