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.
2 parents 3c85d9e + 9c8d58b commit 7810d7aCopy full SHA for 7810d7a
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