Skip to content
This repository has been archived by the owner on Sep 7, 2018. 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
Closed
Labels
Milestone

Comments

@singles
Copy link

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
Copy link
Member

dwittner commented Sep 6, 2013

Fixed by 376eb25.

@dwittner dwittner closed this as completed Sep 6, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants