Fixed Codacy
This commit is contained in:
parent
5f522510d5
commit
c480a86ac0
7 changed files with 5 additions and 38 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import '../class'
|
||||
import '../class';
|
||||
|
||||
frappe.provide("frappe.ui.form");
|
||||
frappe.ui.form.Layout = Class.extend({
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ frappe.socketio = {
|
|||
var host = window.location.origin;
|
||||
if(window.dev_server) {
|
||||
var parts = host.split(":");
|
||||
var port = frappe.boot.socketio_port || port.toString() || '3000';
|
||||
port = frappe.boot.socketio_port || port.toString() || '3000';
|
||||
if(parts.length > 2) {
|
||||
host = parts[0] + ":" + parts[1];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import './field_group'
|
||||
import './field_group';
|
||||
|
||||
frappe.provide('frappe.ui');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import '../form/layout'
|
||||
import '../form/layout';
|
||||
|
||||
frappe.provide('frappe.ui');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
/* eslint-disable */
|
||||
// rename this file from _test_[name] to test_[name] to activate
|
||||
// and remove above this line
|
||||
|
||||
QUnit.test("test: Website Settings", function (assert) {
|
||||
let done = assert.async();
|
||||
|
||||
// number of asserts
|
||||
assert.expect(1);
|
||||
|
||||
frappe.run_serially([
|
||||
// insert a new Website Settings
|
||||
() => frappe.tests.make('Website Settings', [
|
||||
// values to be set
|
||||
{key: 'value'}
|
||||
]),
|
||||
() => {
|
||||
assert.equal(cur_frm.doc.key, 'value');
|
||||
},
|
||||
() => done()
|
||||
]);
|
||||
|
||||
});
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Copyright (c) 2018, Frappe Technologies and Contributors
|
||||
# See license.txt
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import frappe
|
||||
import unittest
|
||||
|
||||
class TestWebsiteSettings(unittest.TestCase):
|
||||
pass
|
||||
|
|
@ -212,7 +212,7 @@ io.on('connection', function (socket) {
|
|||
});
|
||||
|
||||
subscriber.on("message", function (channel, message, room) {
|
||||
message = JSON.parse(message)
|
||||
message = JSON.parse(message);
|
||||
console.log("Dispatching to Room: " + message.room + " event " + message.event + " with message " + JSON.stringify(message.message));
|
||||
io.to(message.room).emit(message.event, message.message)
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue