MCPcopy Create free account
hub / github.com/codecombat/codecombat / makeLevel

Function makeLevel

test/app/factories.coco.js:87–97  ·  view source on GitHub ↗
(attrs)

Source from the content-addressed store, hash-verified

85 },
86
87 makeLevel(attrs) {
88 const _id = _.uniqueId('level_');
89 attrs = _.extend({}, {
90 _id,
91 name: _.string.humanize(_id),
92 slug: _.string.dasherize(_id),
93 original: _id+'_original',
94 version: makeVersion()
95 }, attrs);
96 return new Level(attrs);
97 },
98
99 makeLevelObject(attrs) {
100 const level = this.makeLevel(attrs);

Callers

nothing calls this directly

Calls 1

makeVersionFunction · 0.70

Tested by

no test coverage detected