// TODO: This file was created by bulk-decaffeinate. // Sanity-check the conversion and remove this comment. // assert = require('chai').assert // schema = require '../src/schema' // jjv = require 'jjv' // _ = require 'lodash' // schemaEnv = jjv() // schemaEnv.addSchema("form-design", schema.design) // allforms = require './allforms2.js' // describe "form design schema", -> // it "validates all forms", -> // allErrors = [] // for form in _.values(allforms) // errors = schemaEnv.validate("form-design", form.design) // if errors // allErrors.push errors // console.log form._id // # assert.isNull errors, JSON.stringify(errors) + ":" + form._id // assert.equal allErrors.length, 0, JSON.stringify(allErrors)