UNPKG

apollo-modules

Version:

Modular system for building apollo schemas

22 lines (21 loc) 656 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const helpers_1 = require("./helpers"); describe('helpers', () => { it('creates io schema', () => { const result = helpers_1.ioSchema('test$Input'); chai_1.expect(result).to.match(/type test/); chai_1.expect(result).to.match(/input testInput/); }); it('provides modification properties', () => { chai_1.expect(helpers_1.modificationSchema()).to.equal(` createdById: String createdBy: String createdAt: Date updatedById: String updatedBy: String updatedAt: Date `); }); });