-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9131029
commit 795d996
Showing
11 changed files
with
212 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = function(x, y){ | ||
return x + y; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "moduletest1", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import * as chai from "chai"; | ||
import { WebFaaS } from "../WebFaaS"; | ||
|
||
describe("PathConfigFile", () => { | ||
it("getPathConfigFile", function(){ | ||
const faas = new WebFaaS(); | ||
chai.expect(faas.getPathConfigFile()).to.eq(""); | ||
chai.expect(faas.getPathConfigFile()).to.eq(""); //force cache | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import * as chai from "chai"; | ||
import { WebFaaS } from "../WebFaaS"; | ||
|
||
describe("PathNodeModulesDirectory", () => { | ||
it("getPathNodeModulesDirectory", function(){ | ||
const faas = new WebFaaS(); | ||
chai.expect(faas.getPathNodeModulesDirectory()).to.include("node_modules"); | ||
chai.expect(faas.getPathNodeModulesDirectory()).to.include("node_modules"); //force cache | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as chai from "chai"; | ||
import { WebFaaS } from "../WebFaaS"; | ||
|
||
describe("PathRootPackageDirectory", () => { | ||
it("getPathRootPackageDirectory", function(){ | ||
const faas = new WebFaaS(); | ||
chai.expect(faas.getPathRootPackageDirectory()).to.include("webfaas"); | ||
chai.expect(faas.getPathRootPackageDirectory()).to.include("webfaas"); //force cache | ||
}) | ||
|
||
it("getPathRootPackageDirectory - simulate not exist", function(){ | ||
const faas = new WebFaaS(); | ||
faas.setPathCurrentWorkingDirectory("/notexist"); | ||
chai.expect(faas.getPathRootPackageDirectory()).to.include(""); | ||
chai.expect(faas.getPathRootPackageDirectory()).to.include(""); //force cache | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.