mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
18 lines
457 B
JavaScript
18 lines
457 B
JavaScript
const assert = require('assert');
|
|
const frappe = require('frappejs');
|
|
const helpers = require('./helpers');
|
|
|
|
describe('Controller', () => {
|
|
before(async function() {
|
|
await helpers.initSqlite();
|
|
});
|
|
|
|
it('should call controller method', async () => {
|
|
let doc = frappe.newDoc({
|
|
doctype:'ToDo',
|
|
subject: 'test'
|
|
});
|
|
doc.trigger('validate');
|
|
assert.equal(doc.status, 'Open');
|
|
});
|
|
}); |