@absolunet/ioc2.1.0

View on GitHub

test/mixins/core/setsUp.js

//--------------------------------------------------------
//-- Node IoC - Test - Mixins - Sets up
//--------------------------------------------------------

import factory from '../../../support/mixins/concerns/mixinFactory';


/**
 * Sets up mixin.
 *
 * @class
 * @name SetsUp
 * @memberof test.mixins.core
 * @hideconstructor
 */
const setsUp = factory((SuperClass) => {

	/**
	 * Sets up mixin.
	 */
	return class SetsUpMixin extends SuperClass {

		/**
		 * Setup before the first class test.
		 *
		 * @memberof test.mixins.core.SetsUp
		 * @instance
		 */
		beforeAll() {
			//
		}

		/**
		 * Setup before any class test.
		 *
		 * @memberof test.mixins.core.SetsUp
		 * @instance
		 */
		beforeEach() {
			//
		}

		/**
		 * Tear down after any class test.
		 *
		 * @memberof test.mixins.core.SetsUp
		 * @instance
		 */
		afterEach() {
			//
		}

		/**
		 * Tear down after the last class test.
		 *
		 * @memberof test.mixins.core.SetsUp
		 * @instance
		 */
		afterAll() {
			//
		}

	};

});


export default setsUp;