2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 19:29:02 +00:00
books/frappe/tests/test_controller.js
2018-01-01 15:15:01 +05:30

18 lines
363 B
JavaScript

const assert = require('assert');
const frappe = require('frappe-core');
describe('Controller', () => {
before(function() {
frappe.init();
frappe.db.create_table('ToDo');
});
it('should call controller method', () => {
let doc = frappe.get_doc({
doctype:'ToDo',
subject: 'test'
});
doc.validate();
assert.equal(doc.status, 'Open');
});
});