| 297 | |
| 298 | // Test for left and right character selectors. |
| 299 | function 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. |
| 314 | var shotFixture1 = { |