art-config
Version:
A powerful yet simple tool for configuring all your libraries consistently.
16 lines (11 loc) • 549 B
text/coffeescript
{w, configure, merge, getArtConfig, defineModule, Configuration} = require '../../StandardImport'
class MyBaseConfiguration extends Configuration
baseConfigValue: "food"
overiddenBaseValue: "foo"
defineModule module, class ConfigurationInheritance extends MyBaseConfiguration
overiddenBaseValue: "bar"
: ->
test "inherit value", ->
assert.eq ConfigurationInheritance.prototype.baseConfigValue, "food"
test "override value", ->
assert.eq ConfigurationInheritance.prototype.overiddenBaseValue, "bar"