all files / core/decorators/ setup-decorator.js

100% Statements 9/9
100% Branches 2/2
100% Functions 1/1
100% Lines 9/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  54× 54× 12×   54×   54×      
"use strict";
require("reflect-metadata");
var _metadata_keys_1 = require("./_metadata-keys");
function Setup(target, propertyKey, descriptor) {
    var setupFunctions = Reflect.getMetadata(_metadata_keys_1.SETUP, target);
    if (!setupFunctions) {
        setupFunctions = [];
    }
    setupFunctions.push(propertyKey);
    // mark as setup test method
    Reflect.defineMetadata(_metadata_keys_1.SETUP, setupFunctions, target);
}
exports.Setup = Setup;
;
//# sourceMappingURL=setup-decorator.js.map