AmbientLightProbe.tests.js 912 字节
/* global QUnit */

import { AmbientLightProbe } from '../../../../src/lights/AmbientLightProbe.js';

import { LightProbe } from '../../../../src/lights/LightProbe.js';

export default QUnit.module( 'Lights', () => {

	QUnit.module( 'AmbientLightProbe', () => {

		// INHERITANCE
		QUnit.test( 'Extending', ( assert ) => {

			const object = new AmbientLightProbe();
			assert.strictEqual(
				object instanceof LightProbe, true,
				'AmbientLightProbe extends from LightProbe'
			);

		} );

		// INSTANCING
		QUnit.test( 'Instancing', ( assert ) => {

			const object = new AmbientLightProbe();
			assert.ok( object, 'Can instantiate an AmbientLightProbe.' );

		} );

		// PUBLIC
		QUnit.test( 'isAmbientLightProbe', ( assert ) => {

			const object = new AmbientLightProbe();
			assert.ok(
				object.isAmbientLightProbe,
				'AmbientLightProbe.isAmbientLightProbe should be true'
			);

		} );

	} );

} );