mirror of
https://github.com/frappe/books.git
synced 2024-09-20 19:29:02 +00:00
18 lines
352 B
JavaScript
18 lines
352 B
JavaScript
const assert = require('assert');
|
|
const frappe = require('frappe-core');
|
|
|
|
describe('Controller', () => {
|
|
before(function() {
|
|
frappe.init();
|
|
frappe.db.migrate();
|
|
});
|
|
|
|
it('should call controller method', () => {
|
|
let doc = frappe.get_doc({
|
|
doctype:'ToDo',
|
|
subject: 'test'
|
|
});
|
|
doc.validate();
|
|
assert.equal(doc.status, 'Open');
|
|
});
|
|
}); |