UNPKG

975 BJavaScriptView Raw
1/**
2 * Kettle Bad Config Tests
3 *
4 * Copyright 2015 Raising The Floor - International
5 *
6 * Licensed under the New BSD license. You may not use this file except in
7 * compliance with this License.
8 *
9 * You may obtain a copy of the License at
10 * https://github.com/fluid-project/kettle/blob/master/LICENSE.txt
11 */
12
13"use strict";
14
15var fluid = require("infusion"),
16 jqUnit = fluid.registerNamespace("jqUnit"),
17 kettle = require("../kettle.js");
18
19kettle.loadTestingSupport();
20
21fluid.registerNamespace("kettle.tests.badConfig");
22
23/** Configs which can be found to be bad at definition time **/
24
25jqUnit.test("Config with bad top-level keys", function () {
26 jqUnit.expectFrameworkDiagnostic("Got framework diagnostic on loading config with faulty top-level keys", function () {
27 kettle.config.createDefaults({
28 configPath: "%kettle/tests/configs",
29 configName: "kettle.tests.badConfig.keys.config"
30 });
31 }, "distributeOptions");
32});