PointLightShadow.tests.js 1018 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* global QUnit */
  2. import { PointLightShadow } from '../../../../src/lights/PointLightShadow.js';
  3. import { LightShadow } from '../../../../src/lights/LightShadow.js';
  4. export default QUnit.module( 'Lights', () => {
  5. QUnit.module( 'PointLightShadow', () => {
  6. // INHERITANCE
  7. QUnit.test( 'Extending', ( assert ) => {
  8. const object = new PointLightShadow();
  9. assert.strictEqual(
  10. object instanceof LightShadow, true,
  11. 'PointLightShadow extends from LightShadow'
  12. );
  13. } );
  14. // INSTANCING
  15. QUnit.test( 'Instancing', ( assert ) => {
  16. const object = new PointLightShadow();
  17. assert.ok( object, 'Can instantiate a PointLightShadow.' );
  18. } );
  19. // PUBLIC
  20. QUnit.test( 'isPointLightShadow', ( assert ) => {
  21. const object = new PointLightShadow();
  22. assert.ok(
  23. object.isPointLightShadow,
  24. 'PointLightShadow.isPointLightShadow should be true'
  25. );
  26. } );
  27. QUnit.todo( 'updateMatrices', ( assert ) => {
  28. assert.ok( false, 'everything\'s gonna be alright' );
  29. } );
  30. } );
  31. } );