chore(deps-dev): bump prettier from 1.19.1 to 2.0.2

This commit is contained in:
DIYgod
2020-04-02 21:21:46 +08:00
parent 27e4a7c151
commit 0e7b14e718
471 changed files with 1237 additions and 4457 deletions

View File

@@ -19,7 +19,7 @@ afterEach(() => {
const http = require('http');
const httpWrap = (func) => {
const origin = func;
return function(url, request) {
return function (url, request) {
if (typeof url === 'object') {
if (url instanceof URL) {
check(request);
@@ -41,7 +41,7 @@ describe('got', () => {
nock(/rsshub\.test/)
.get(/.*/)
.times(3)
.reply(function() {
.reply(function () {
expect(this.req.headers.server).toBe('RSSHub');
expect(this.req.headers.referer).toBe('http://api.rsshub.test');
expect(this.req.headers.host).toBe('api.rsshub.test');
@@ -132,7 +132,7 @@ describe('got', () => {
nock(/rsshub\.test/)
.get('/auth')
.times(2)
.reply(function() {
.reply(function () {
expect(this.req.headers['proxy-authorization']).toBe('Basic testtest');
return [200, simpleResponse];
});