Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-17 10:25:31 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-17 15:03:38 +0300
commit5d9bb5e2471b5266496a1bfd0af11e766de917c2 (patch)
tree0b7d4017098209ac3b6e4df3938257d91b9d8194 /core/src
parentfb183b457c2befbc3ab04b0cb070aa1e300443c6 (diff)
Lint fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/tests/.eslintrc.js9
-rw-r--r--core/src/tests/OC/requesttoken.spec.js10
-rw-r--r--core/src/tests/setup.js4
-rw-r--r--core/src/views/Login.vue4
4 files changed, 18 insertions, 9 deletions
diff --git a/core/src/tests/.eslintrc.js b/core/src/tests/.eslintrc.js
new file mode 100644
index 00000000000..451ef6bdfa2
--- /dev/null
+++ b/core/src/tests/.eslintrc.js
@@ -0,0 +1,9 @@
+module.exports = {
+ globals: {
+ jsdom: true,
+ sinon: true,
+ },
+ rules: {
+ "node/no-unpublished-import": 'off'
+ }
+}
diff --git a/core/src/tests/OC/requesttoken.spec.js b/core/src/tests/OC/requesttoken.spec.js
index d19a4b8e9c8..5506a4f72cc 100644
--- a/core/src/tests/OC/requesttoken.spec.js
+++ b/core/src/tests/OC/requesttoken.spec.js
@@ -1,4 +1,4 @@
-/*
+/**
* @copyright 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -19,10 +19,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-import {JSDOM} from 'jsdom'
-import {subscribe, unsubscribe} from '@nextcloud/event-bus'
+import { JSDOM } from 'jsdom'
+import { subscribe, unsubscribe } from '@nextcloud/event-bus'
-import {manageToken, setToken} from '../../OC/requesttoken'
+import { manageToken, setToken } from '../../OC/requesttoken'
describe('request token', () => {
@@ -66,7 +66,7 @@ describe('request token', () => {
it('fires off an event for @nextcloud/auth', () => {
setToken('123')
- expect(listener).to.have.been.calledWith({token: '123'})
+ expect(listener).to.have.been.calledWith({ token: '123' })
})
})
diff --git a/core/src/tests/setup.js b/core/src/tests/setup.js
index bec4e11eaea..2e8ab27775d 100644
--- a/core/src/tests/setup.js
+++ b/core/src/tests/setup.js
@@ -21,8 +21,8 @@
require('jsdom-global')()
const chai = require('chai')
-var sinon = require('sinon')
-var sinonChai = require('sinon-chai');
+const sinon = require('sinon')
+const sinonChai = require('sinon-chai')
chai.use(sinonChai)
global.expect = chai.expect
diff --git a/core/src/views/Login.vue b/core/src/views/Login.vue
index c75ae98030b..304bc883557 100644
--- a/core/src/views/Login.vue
+++ b/core/src/views/Login.vue
@@ -164,8 +164,8 @@ export default {
},
hideLoginForm: {
type: Boolean,
- default: false
- }
+ default: false,
+ },
},
data() {
return {