UNPKG

stub-azure-function-context

Version:

Provides an object similar to Function Runtime's context for use in unit testing

27 lines 653 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TableBinding = void 0; class TableBinding { data; constructor(data) { this.data = data; } toTrigger() { return this.data; } toContextBinding() { const binding = { ...this.data, RowKey: this.data.rowKey, PartitionKey: this.data.partitionKey, }; delete binding.rowKey; delete binding.partitionKey; return binding; } toBindingData() { return this.data; } } exports.TableBinding = TableBinding; //# sourceMappingURL=table-binding.js.map