Removing un-used code and removing some files from coverage that aren't of consequence.
This commit is contained in:
parent
794372987e
commit
d5ec1b3167
|
@ -60,7 +60,9 @@
|
||||||
"!src/utilities/usageQuota.js",
|
"!src/utilities/usageQuota.js",
|
||||||
"!src/api/routes/tests/**/*",
|
"!src/api/routes/tests/**/*",
|
||||||
"!src/tests/**/*",
|
"!src/tests/**/*",
|
||||||
"!src/automations/tests/**/*"
|
"!src/automations/tests/**/*",
|
||||||
|
"!src/utilities/fileProcessor.js",
|
||||||
|
"!src/utilities/initialiseBudibase.js"
|
||||||
],
|
],
|
||||||
"coverageReporters": [
|
"coverageReporters": [
|
||||||
"lcov",
|
"lcov",
|
||||||
|
|
|
@ -7,6 +7,8 @@ const packageJson = require("../../package.json")
|
||||||
|
|
||||||
const streamPipeline = promisify(stream.pipeline)
|
const streamPipeline = promisify(stream.pipeline)
|
||||||
|
|
||||||
|
// can't really test this due to the downloading nature of it, wouldn't be a great test case
|
||||||
|
/* istanbul ignore next */
|
||||||
exports.downloadExtractComponentLibraries = async appFolder => {
|
exports.downloadExtractComponentLibraries = async appFolder => {
|
||||||
const LIBRARIES = ["standard-components"]
|
const LIBRARIES = ["standard-components"]
|
||||||
|
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
const statusCodes = require("./statusCodes")
|
|
||||||
|
|
||||||
const errorWithStatus = (message, statusCode) => {
|
|
||||||
const e = new Error(message)
|
|
||||||
e.statusCode = statusCode
|
|
||||||
return e
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports.unauthorized = message =>
|
|
||||||
errorWithStatus(message, statusCodes.UNAUTHORIZED)
|
|
||||||
|
|
||||||
module.exports.forbidden = message =>
|
|
||||||
errorWithStatus(message, statusCodes.FORBIDDEN)
|
|
||||||
|
|
||||||
module.exports.notfound = message =>
|
|
||||||
errorWithStatus(message, statusCodes.NOT_FOUND)
|
|
Loading…
Reference in New Issue