2
0
mirror of https://github.com/frappe/books.git synced 2025-02-02 20:18:26 +00:00
books/frappe/tests/test_models.js

14 lines
332 B
JavaScript
Raw Normal View History

2018-01-01 14:57:59 +05:30
const assert = require('assert');
const frappe = require('frappe-core');
2018-01-03 12:19:59 +05:30
const helpers = require('./helpers');
2018-01-01 14:57:59 +05:30
describe('Models', () => {
2018-01-02 15:40:32 +05:30
before(async function() {
2018-01-03 12:19:59 +05:30
await helpers.init_sqlite();
2018-01-01 14:57:59 +05:30
});
it('should get todo json', () => {
let todo = frappe.models.get('DocType', 'ToDo');
assert.equal(todo.issingle, 0);
});
});