1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

lint fixes

This commit is contained in:
Matthias Kretschmann 2019-06-26 19:54:53 +02:00
parent 599e712181
commit 3d129b5415
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,8 @@
"@typescript-eslint/member-delimiter-style": [ "@typescript-eslint/member-delimiter-style": [
"error", "error",
{ "multiline": { "delimiter": "none" } } { "multiline": { "delimiter": "none" } }
] ],
"@typescript-eslint/no-explicit-any": "off"
}, },
"env": { "env": {
"es6": true, "es6": true,

View File

@ -102,6 +102,8 @@ To run all linting, unit and integration tests in one go, run:
npm test npm test
``` ```
The endpoints the integration tests run against are defined by your [Environment Variables](#-Environment-Variables), and Cypress-specific variables in `cypress.json`.
### Unit Tests ### Unit Tests
For local development, you can start the test runners for client & server in a watch mode. For local development, you can start the test runners for client & server in a watch mode.
@ -130,8 +132,6 @@ npm run test:e2e
This will automatically spin up all required resources to run the integrations tests, and then run them. This will automatically spin up all required resources to run the integrations tests, and then run them.
The endpoints Cypress runs against are defined by your [Environment Variables](#-Environment-Variables), and Cypress-specific variables in `cypress.json`.
You can also use the UI of Cypress to run and inspect the integration tests locally: You can also use the UI of Cypress to run and inspect the integration tests locally:
```bash ```bash

View File

@ -1,7 +1,6 @@
import React from 'react' import React from 'react'
import { render, fireEvent, waitForElement } from '@testing-library/react' import { render, fireEvent, waitForElement } from '@testing-library/react'
import mockAxios from 'jest-mock-axios' import mockAxios from 'jest-mock-axios'
import { serviceUri } from '../../../config'
import Files from '.' import Files from '.'
const onChange = jest.fn() const onChange = jest.fn()

View File

@ -64,7 +64,7 @@ app.get('/', (req, res) => {
app.use('/api/v1/urlcheck', UrlCheckRouter) app.use('/api/v1/urlcheck', UrlCheckRouter)
/// catch 404 /// catch 404
app.use((req, res, next) => { app.use((req, res) => {
res.status(404).send() res.status(404).send()
}) })