-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #755 from aaron-prindle/invalid-package-json
fixes issue where FTL node would succeed on invalid name in package.json
- Loading branch information
Showing
6 changed files
with
36 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
var express = require('express'); | ||
var app = express(); | ||
|
||
// Routes | ||
app.get('/', function(req, res) { | ||
res.send('Hello World!'); | ||
}); | ||
|
||
// Listen | ||
var port = process.env.PORT || 3000; | ||
app.listen(port); | ||
console.log('Listening on localhost:'+ port); |
Empty file.
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,8 @@ | ||
{ | ||
"name": "Cloud Storage Upload/Download Timeout", | ||
"version": "0.0.1", | ||
"dependencies": { | ||
"express": "3.x", | ||
"@google-cloud/storage": "^1.7.0" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
ftl/node/testdata/invalid_package_test/structure_test.yaml
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 @@ | ||
schemaVersion: '2.0.0' | ||
fileExistenceTests: | ||
- name: 'express dependency' | ||
path: '/srv/node_modules/express' | ||
shouldExist: true | ||
isDirectory: true | ||
- name: 'package devdependency' | ||
path: '/srv/node_modules/package' | ||
shouldExist: false | ||
isDirectory: true |