Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c85d9e commit 9c8d58bCopy full SHA for 9c8d58b
devtools/test_dashboard/server.js
@@ -74,7 +74,9 @@ function readFiles(files) {
74
function createMocksList(files) {
75
76
// eliminate pollutants (e.g .DS_Store) that can accumulate in the mock directory
77
- var jsonFiles = files.filter(function(file) {return file.extname === '.json';});
+ var jsonFiles = files.filter(function(file) {
78
+ return file.name.substr(-5) === '.json';
79
+ });
80
81
var mocksList = jsonFiles.map(function(file) {
82
var contents = JSON.parse(file.contents);
0 commit comments