2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/frappe/tests/test_controller.js

18 lines
352 B
JavaScript
Raw Normal View History

2018-01-01 09:27:59 +00:00
const assert = require('assert');
const frappe = require('frappe-core');
describe('Controller', () => {
before(function() {
frappe.init();
2018-01-01 10:28:30 +00:00
frappe.db.migrate();
2018-01-01 09:27:59 +00:00
});
it('should call controller method', () => {
let doc = frappe.get_doc({
doctype:'ToDo',
subject: 'test'
});
doc.validate();
assert.equal(doc.status, 'Open');
});
});