@adonisjs/lucid
Version:
SQL ORM built on top of Active Record pattern
39 lines (38 loc) • 1.15 kB
JavaScript
;
/*
* @adonisjs/lucid
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FactoryContext = void 0;
const faker_1 = __importDefault(require("faker"));
class FactoryContext {
constructor(isStubbed, $trx) {
Object.defineProperty(this, "isStubbed", {
enumerable: true,
configurable: true,
writable: true,
value: isStubbed
});
Object.defineProperty(this, "$trx", {
enumerable: true,
configurable: true,
writable: true,
value: $trx
});
Object.defineProperty(this, "faker", {
enumerable: true,
configurable: true,
writable: true,
value: faker_1.default
});
}
}
exports.FactoryContext = FactoryContext;