Fix tests

This commit is contained in:
Hongbo Wu
2022-10-04 10:47:58 +08:00
parent 9cae703666
commit 53d6afe25f
6 changed files with 6 additions and 28 deletions

View File

@ -4,7 +4,7 @@
"description": "Service that fetches page content from a URL",
"main": "index.js",
"dependencies": {
"@omnivore/content-handler": "file:./../content-handler",
"@omnivore/content-handler": "1.0.0",
"axios": "^0.27.2",
"dotenv": "^8.2.0",
"express": "^4.17.1",

View File

@ -25,12 +25,13 @@
"@types/node": "^14.11.2",
"@types/rfc2047": "^2.0.1",
"chai": "^4.3.6",
"eslint-plugin-prettier": "^4.0.0"
"eslint-plugin-prettier": "^4.0.0",
"mocha": "^10.0.0"
},
"dependencies": {
"@google-cloud/functions-framework": "3.1.2",
"@google-cloud/pubsub": "^2.18.4",
"@omnivore/content-handler": "file:./../content-handler",
"@omnivore/content-handler": "1.0.0",
"@sendgrid/client": "^7.6.0",
"@sentry/serverless": "^6.16.1",
"addressparser": "^1.0.1",

View File

@ -1,3 +1,4 @@
import 'mocha'
import { expect } from 'chai'
import {
getConfirmationCode,

View File

@ -1,13 +0,0 @@
import 'mocha'
import * as chai from 'chai'
import { expect } from 'chai'
import 'chai/register-should'
import chaiString from 'chai-string'
chai.use(chaiString)
describe('Stub test', () => {
it('should pass', () => {
expect(true).to.be.true
})
})

View File

@ -7,7 +7,7 @@
"@google-cloud/functions-framework": "^3.1.2",
"@google-cloud/logging-winston": "^5.1.1",
"@google-cloud/storage": "^5.18.1",
"@omnivore/content-handler": "file:./../content-handler",
"@omnivore/content-handler": "1.0.0",
"@sentry/serverless": "^6.13.3",
"axios": "^0.27.2",
"chrome-aws-lambda": "^10.1.0",

View File

@ -4312,17 +4312,6 @@
dependencies:
"@octokit/openapi-types" "^9.5.0"
"@omnivore/content-handler@file:./packages/content-handler":
version "1.0.0"
dependencies:
addressparser "^1.0.1"
axios "^0.27.2"
linkedom "^0.14.16"
luxon "^3.0.4"
rfc2047 "^4.0.1"
underscore "^1.13.6"
uuid "^9.0.0"
"@opentelemetry/api-metrics@0.27.0":
version "0.27.0"
resolved "https://registry.yarnpkg.com/@opentelemetry/api-metrics/-/api-metrics-0.27.0.tgz#d8eca344ed1155f3ea8a8133ade827b4bb90efbf"