2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14:03 +00:00
books/tests/test_models.js

14 lines
344 B
JavaScript
Raw Normal View History

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