Commit e32f2d07 authored by yPhil's avatar yPhil
Browse files

New test: Pétrolette is serving static files

parent 273ca81c
# Changelog
## v1.5.0
- Pétrolette can now find/discover all the feeds in the URI
- Hardened security #1e3a51a
- More data (img, video & audio) types managed #1325ab5
- The search input text field is now un-focused on pressing escape #e36feb4c
......
{
"name": "petrolette",
"version": "v1.5.3",
"version": "v1.5.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "petrolette",
"version": "v1.5.3",
"version": "v1.5.5",
"license": "GPL-3.0-only",
"dependencies": {
"@fancyapps/fancybox": "3.5.7",
......@@ -33,6 +33,7 @@
"sanitize": "^2.1.0"
},
"devDependencies": {
"connect": "3.7.0",
"mocha": "^9.0.3",
"nyc": "^15.1.0",
"should": "^13.2.3"
......@@ -1477,6 +1478,21 @@
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
},
"node_modules/connect": {
"version": "3.7.0",
"resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz",
"integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==",
"dev": true,
"dependencies": {
"debug": "2.6.9",
"finalhandler": "1.1.2",
"parseurl": "~1.3.3",
"utils-merge": "1.0.1"
},
"engines": {
"node": ">= 0.10.0"
}
},
"node_modules/content-disposition": {
"version": "0.5.3",
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
......@@ -9546,6 +9562,18 @@
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
},
"connect": {
"version": "3.7.0",
"resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz",
"integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==",
"dev": true,
"requires": {
"debug": "2.6.9",
"finalhandler": "1.1.2",
"parseurl": "~1.3.3",
"utils-merge": "1.0.1"
}
},
"content-disposition": {
"version": "0.5.3",
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
......
......@@ -49,6 +49,7 @@
"sanitize": "^2.1.0"
},
"devDependencies": {
"connect": "3.7.0",
"mocha": "^9.0.3",
"nyc": "^15.1.0",
"should": "^13.2.3"
......
......@@ -73,4 +73,13 @@ describe('Pétrolette', function() {
done();
});
it('Pétrolette is serving pseudo-static files', function(done) {
fetch('http://localhost:' + PORT + '/robots.txt')
.then(res => res.text())
.then(text => {
text.substring(0, 10).should.eql('User-agent');
}).catch(done);
done();
});
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment