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

Function getCharacterThangTypeSlugTest

test/app/models/Cinematic.spec.js:299–311  ·  view source on GitHub ↗
(selector, side, data, characterProperty)

Source from the content-addressed store, hash-verified

297
298// Test for left and right character selectors.
299function getCharacterThangTypeSlugTest (selector, side, data, characterProperty) {
300 describe(`${side}`, () => {
301 it('returns undefined when passed nothing', () => {
302 expect(selector(undefined)).toBeUndefined()
303 })
304
305 it('returns undefined if the left thangType doesn\'t have type', () => {
306 for (const testData of data) {
307 expect(selector(testData)).toBeUndefined()
308 }
309 })
310 })
311}
312
313// Fixture testing selectors for cinematics.
314var shotFixture1 = {

Callers 1

Cinematic.spec.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected