2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/tests/test_controller.js

18 lines
459 B
JavaScript
Raw Normal View History

2018-01-12 12:25:07 +00:00
const assert = require('assert');
2018-01-16 06:09:17 +00:00
const frappe = require('frappejs');
2018-01-12 12:25:07 +00:00
const helpers = require('./helpers');
describe('Controller', () => {
before(async function() {
await helpers.init_sqlite();
});
it('should call controller method', async () => {
2018-02-01 11:07:36 +00:00
let doc = frappe.new_doc({
2018-01-12 12:25:07 +00:00
doctype:'ToDo',
subject: 'test'
});
doc.trigger('validate');
assert.equal(doc.status, 'Open');
});
});