Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion devtools/test_dashboard/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ function readFiles(files) {
}

function createMocksList(files) {
var mocksList = files.map(function(file) {

// eliminate pollutants (e.g .DS_Store) that can accumulate in the mock directory
var jsonFiles = files.filter(function(file) {return file.extname === '.json';});

var mocksList = jsonFiles.map(function(file) {
var contents = JSON.parse(file.contents);

// get plot type keywords from mocks
Expand Down