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

Function makeThangType

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

Source from the content-addressed store, hash-verified

229 },
230
231 makeThangType(attrs) {
232 const _id = _.uniqueId('thang_type_');
233 attrs = _.extend({}, {
234 _id,
235 name: _.string.humanize(_id),
236 version: makeVersion(),
237 original: _id
238 }, attrs);
239 return new ThangType(attrs);
240 },
241
242 makePayment(attrs, sources) {
243 if (sources == null) { sources = {}; }

Callers

nothing calls this directly

Calls 1

makeVersionFunction · 0.70

Tested by

no test coverage detected