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

Function cleanProject

test/project.test.js:17–22  ·  view source on GitHub ↗
(proj)

Source from the content-addressed store, hash-verified

15}
16
17function cleanProject(proj) {
18 if (!proj) return;
19 delete proj._updated;
20 if (Array.isArray(proj.tiles)) proj.tiles = proj.tiles.map(removeTimestamp);
21 if (Array.isArray(proj.grids)) proj.grids = proj.grids.map(removeTimestamp);
22}
23
24describe('Testing Project Functions (project.test.js)', function() {
25

Callers 1

project.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected