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.
npm start
1 parent 2750392 commit 34e07faCopy full SHA for 34e07fa
devtools/test_dashboard/server.js
@@ -72,7 +72,11 @@ function readFiles(files) {
72
}
73
74
function createMocksList(files) {
75
- var mocksList = files.map(function(file) {
+
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';});
78
79
+ var mocksList = jsonFiles.map(function(file) {
80
var contents = JSON.parse(file.contents);
81
82
// get plot type keywords from mocks
0 commit comments