2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00
books/tests/test_controller.js
Rushabh Mehta 328a9de7d4 💥 frappejs
2018-01-16 11:39:17 +05:30

18 lines
465 B
JavaScript

const assert = require('assert');
const frappe = require('frappejs');
const helpers = require('./helpers');
describe('Controller', () => {
before(async function() {
await helpers.init_sqlite();
});
it('should call controller method', async () => {
let doc = await frappe.get_doc({
doctype:'ToDo',
subject: 'test'
});
doc.trigger('validate');
assert.equal(doc.status, 'Open');
});
});