2
0
mirror of https://github.com/frappe/books.git synced 2025-01-25 16:18:33 +00:00
books/tests/test_models.js

14 lines
344 B
JavaScript
Raw Normal View History

2018-01-12 17:55:07 +05:30
const assert = require('assert');
2018-01-16 11:39:17 +05:30
const frappe = require('frappejs');
2018-01-12 17:55:07 +05:30
const helpers = require('./helpers');
describe('Models', () => {
before(async function() {
await helpers.initSqlite();
2018-01-12 17:55:07 +05:30
});
it('should get todo json', () => {
let todo = frappe.getMeta('ToDo');
2018-02-12 17:31:31 +05:30
assert.equal(todo.isSingle, 0);
2018-01-12 17:55:07 +05:30
});
});