mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
18 lines
468 B
JavaScript
18 lines
468 B
JavaScript
|
const assert = require('assert');
|
||
|
const frappe = require('frappe-core');
|
||
|
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');
|
||
|
});
|
||
|
});
|