This repository has been archived by the owner. It is now read-only.

buster-test returns undefined, when you use not known configuration key #267

Closed
singles opened this Issue Aug 20, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@singles

singles commented Aug 20, 2012

This works ok

var config = module.exports;

config["Node tests"] = {
    tests: [
        "test/shared/*-test.js"
    ],
    environment: 'node'
};

but this one ends with returning undefined and no running tests:

var config = module.exports;

config["Node tests"] = {
    tests: [
        "test/shared/*-test.js"
    ],
    foo: "bar"
    environment: 'node'
};

I think, that returned message should be Unknown configuration option 'foo' according to this: https://github.com/busterjs/buster-configuration/blob/master/lib/group.js#L74

@dwittner

This comment has been minimized.

Member

dwittner commented Sep 6, 2013

Fixed by 376eb25.

@dwittner dwittner closed this Sep 6, 2013

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.