From a5b74ba3bc0ea36b7a62e2e97bc04ce308cb2f26 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 4 Sep 2017 21:46:37 +0530 Subject: [PATCH] [fix] add phone, email, skype in contact us, fixes frappe/erpnext#1226 --- .../test_contact_us_settings.js | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 frappe/website/doctype/contact_us_settings/test_contact_us_settings.js diff --git a/frappe/website/doctype/contact_us_settings/test_contact_us_settings.js b/frappe/website/doctype/contact_us_settings/test_contact_us_settings.js new file mode 100644 index 0000000000..ab53ac56c1 --- /dev/null +++ b/frappe/website/doctype/contact_us_settings/test_contact_us_settings.js @@ -0,0 +1,23 @@ +/* eslint-disable */ +// rename this file from _test_[name] to test_[name] to activate +// and remove above this line + +QUnit.test("test: Contact Us Settings", function (assert) { + let done = assert.async(); + + // number of asserts + assert.expect(1); + + frappe.run_serially([ + // insert a new Contact Us Settings + () => frappe.tests.make('Contact Us Settings', [ + // values to be set + {key: 'value'} + ]), + () => { + assert.equal(cur_frm.doc.key, 'value'); + }, + () => done() + ]); + +});