MCPcopy
hub / github.com/tilemill-project/tilemill / readJSON

Function readJSON

test/project.test.js:8–11  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

6var tile;
7
8function readJSON(name) {
9 var json = fs.readFileSync(path.resolve(__dirname + '/fixtures/' + name + '.json'), 'utf8');
10 return JSON.parse(json);
11}
12
13function removeTimestamp(url) {
14 return url.replace(/\?.*$/, '');

Callers 1

project.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected