Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 429 lines (399 sloc) 75.612 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>test 1-protected-test.js </title>

<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=1352250494.79" />
<link rel="stylesheet" type="text/css" href="assets/api.css?stamp=1352250494.79" />

    <script type="text/javascript" src="assets/api-js?stamp=1352250494.79"></script>
    <script type="text/javascript" src="assets/ac-js?stamp=1352250494.79"></script>
</head>

<body id="node-monitor">

<div id="doc3" class="yui-t2">
<div id="hd">
        <h1><a href="https://github.com/lorenwest/node-config" title="Node.js Configuration">Node.js Configuration</a></h1>
        <a href="./index.html" title="Node.js Configuration">Node.js Configuration</a>
            &gt; <a href="./module_test.html" title="test">test</a>
                
                 &gt; 1-protected-test.js (source view)
        <form onsubmit="return false">
            <div id="propertysearch">
                Search: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
</div>

<div id="bd">
<div id="yui-main">
<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts" style="display:none;"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span id="showProtected" class="classopts" style="display:none'"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts" style="display:none;"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                    <div id="srcout">
                        <style>
                            #doc3 .classopts { display:none; }
                        </style>
<div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * &lt;p&gt;Unit tests&lt;/p&gt;</span>
<span class="cm"> *</span>
<span class="cm"> * @module test</span>
<span class="cm"> */</span>

<span class="c1">// Change the configuration directory for testing</span>
<span class="nx">process</span><span class="p">.</span><span class="nx">env</span><span class="p">.</span><span class="nx">NODE_CONFIG_DIR</span> <span class="o">=</span> <span class="nx">__dirname</span> <span class="o">+</span> <span class="s1">&#39;/config&#39;</span><span class="p">;</span>

<span class="c1">// Hardcode $NODE_ENV=test for testing</span>
<span class="nx">process</span><span class="p">.</span><span class="nx">env</span><span class="p">.</span><span class="nx">NODE_ENV</span><span class="o">=</span><span class="s1">&#39;test&#39;</span><span class="p">;</span>

<span class="c1">// Dependencies</span>
<span class="kd">var</span> <span class="nx">CONFIG</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;../lib/config&#39;</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">vows</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;vows&#39;</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">assert</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;assert&#39;</span><span class="p">);</span>

<span class="cm">/**</span>
<span class="cm"> * &lt;p&gt;Tests for underlying node-config utilities. To run type:&lt;/p&gt;</span>
<span class="cm"> * &lt;pre&gt;npm test config&lt;/pre&gt;</span>
<span class="cm"> *</span>
<span class="cm"> * @class ProtectedTest</span>
<span class="cm"> */</span>
<span class="nx">exports</span><span class="p">.</span><span class="nx">PrivateTest</span> <span class="o">=</span> <span class="nx">vows</span><span class="p">.</span><span class="nx">describe</span><span class="p">(</span><span class="s1">&#39;Protected (hackable) utilities test&#39;</span><span class="p">).</span><span class="nx">addBatch</span><span class="p">({</span>
  <span class="s1">&#39;Library initialization&#39;</span><span class="o">:</span> <span class="p">{</span>
    <span class="s1">&#39;Library is available&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">);</span>
    <span class="p">}</span>
  <span class="p">},</span>

  <span class="s1">&#39;_isObject() tests&#39;</span><span class="o">:</span> <span class="p">{</span>
    <span class="s1">&#39;The function exists&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFunction</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_isObject</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Correctly identifies objects&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_isObject</span><span class="p">({</span><span class="nx">A</span><span class="o">:</span><span class="s2">&quot;b&quot;</span><span class="p">}));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Correctly excludes non-objects&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_isObject</span><span class="p">(</span><span class="s2">&quot;some string&quot;</span><span class="p">));</span>
    <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_isObject</span><span class="p">(</span><span class="mi">45</span><span class="p">));</span>
    <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_isObject</span><span class="p">([</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">]));</span>
    <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_isObject</span><span class="p">([</span><span class="s2">&quot;a&quot;</span><span class="p">,</span> <span class="s2">&quot;b&quot;</span><span class="p">]));</span>
    <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_isObject</span><span class="p">(</span><span class="kc">null</span><span class="p">));</span>
    <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_isObject</span><span class="p">(</span><span class="kc">undefined</span><span class="p">));</span>
    <span class="p">}</span>
  <span class="p">},</span>

  <span class="s1">&#39;_cloneDeep() tests&#39;</span><span class="o">:</span> <span class="p">{</span>
    <span class="nx">topic</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="c1">// Return an object for copy tests</span>
      <span class="k">return</span> <span class="p">{</span>
        <span class="nx">elem0</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span>
        <span class="nx">elem1</span><span class="o">:</span><span class="s2">&quot;Element 1&quot;</span><span class="p">,</span>
        <span class="nx">elem2</span><span class="o">:</span><span class="mi">2</span><span class="p">,</span>
        <span class="nx">elem3</span><span class="o">:</span><span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">2</span><span class="p">,</span><span class="mi">3</span><span class="p">],</span>
        <span class="nx">elem4</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">return</span> <span class="s2">&quot;hello&quot;</span><span class="p">;},</span>
        <span class="nx">elem5</span><span class="o">:</span><span class="p">{</span><span class="nx">sub1</span><span class="o">:</span><span class="s2">&quot;sub 1&quot;</span><span class="p">,</span><span class="nx">sub2</span><span class="o">:</span><span class="mi">2</span><span class="p">,</span><span class="nx">sub3</span><span class="o">:</span><span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">2</span><span class="p">,</span><span class="mi">3</span><span class="p">]}</span>
      <span class="p">};</span>
    <span class="p">},</span>
    <span class="s1">&#39;The function exists&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFunction</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_cloneDeep</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Original and copy should test equivalent (deep)&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">orig</span><span class="p">)</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">copy</span> <span class="o">=</span> <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_cloneDeep</span><span class="p">(</span><span class="nx">orig</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">deepEqual</span><span class="p">(</span><span class="nx">copy</span><span class="p">,</span> <span class="nx">orig</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;The objects should be different&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">orig</span><span class="p">)</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">copy</span> <span class="o">=</span> <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_cloneDeep</span><span class="p">(</span><span class="nx">orig</span><span class="p">);</span>
      <span class="nx">copy</span><span class="p">.</span><span class="nx">elem1</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">notDeepEqual</span><span class="p">(</span><span class="nx">copy</span><span class="p">,</span> <span class="nx">orig</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Object clones should be objects&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">orig</span><span class="p">)</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_cloneDeep</span><span class="p">({</span><span class="nx">a</span><span class="o">:</span><span class="mi">1</span><span class="p">,</span> <span class="nx">b</span><span class="o">:</span><span class="mi">2</span><span class="p">}));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Array clones should be arrays&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">orig</span><span class="p">)</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isArray</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_cloneDeep</span><span class="p">([</span><span class="s2">&quot;a&quot;</span><span class="p">,</span> <span class="s2">&quot;b&quot;</span><span class="p">,</span> <span class="mi">3</span><span class="p">]));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Arrays should be copied by value, not by reference&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">orig</span><span class="p">)</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">copy</span> <span class="o">=</span> <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_cloneDeep</span><span class="p">(</span><span class="nx">orig</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">deepEqual</span><span class="p">(</span><span class="nx">copy</span><span class="p">,</span> <span class="nx">orig</span><span class="p">);</span>
      <span class="nx">copy</span><span class="p">.</span><span class="nx">elem3</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
      <span class="c1">// If the copy wasn&#39;t deep, elem3 would be the same object</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">notDeepEqual</span><span class="p">(</span><span class="nx">copy</span><span class="p">,</span> <span class="nx">orig</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Objects should be copied by value, not by reference&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">orig</span><span class="p">)</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">copy</span> <span class="o">=</span> <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_cloneDeep</span><span class="p">(</span><span class="nx">orig</span><span class="p">);</span>
      <span class="nx">copy</span><span class="p">.</span><span class="nx">elem5</span><span class="p">.</span><span class="nx">sub2</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">notDeepEqual</span><span class="p">(</span><span class="nx">copy</span><span class="p">,</span> <span class="nx">orig</span><span class="p">);</span>
      <span class="nx">copy</span> <span class="o">=</span> <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_cloneDeep</span><span class="p">(</span><span class="nx">orig</span><span class="p">);</span>
      <span class="nx">copy</span><span class="p">.</span><span class="nx">elem5</span><span class="p">.</span><span class="nx">sub3</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">notDeepEqual</span><span class="p">(</span><span class="nx">copy</span><span class="p">,</span> <span class="nx">orig</span><span class="p">);</span>
    <span class="p">}</span>
  <span class="p">},</span>

  <span class="s1">&#39;_extendDeep() tests&#39;</span><span class="o">:</span> <span class="p">{</span>
    <span class="s1">&#39;The function exists&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFunction</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_extendDeep</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Performs normal extend&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">orig</span> <span class="o">=</span> <span class="p">{</span><span class="nx">elem1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">,</span> <span class="nx">elem2</span><span class="o">:</span><span class="s2">&quot;val2&quot;</span><span class="p">};</span>
      <span class="kd">var</span> <span class="nx">extWith</span> <span class="o">=</span> <span class="p">{</span><span class="nx">elem3</span><span class="o">:</span><span class="s2">&quot;val3&quot;</span><span class="p">};</span>
      <span class="kd">var</span> <span class="nx">shouldBe</span> <span class="o">=</span> <span class="p">{</span><span class="nx">elem1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">,</span> <span class="nx">elem2</span><span class="o">:</span><span class="s2">&quot;val2&quot;</span><span class="p">,</span> <span class="nx">elem3</span><span class="o">:</span><span class="s2">&quot;val3&quot;</span><span class="p">};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">deepEqual</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_extendDeep</span><span class="p">(</span><span class="nx">orig</span><span class="p">,</span> <span class="nx">extWith</span><span class="p">),</span> <span class="nx">shouldBe</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Replaces non-objects&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">orig</span> <span class="o">=</span> <span class="p">{</span><span class="nx">elem1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">,</span> <span class="nx">elem2</span><span class="o">:</span><span class="p">[</span><span class="s2">&quot;val2&quot;</span><span class="p">,</span><span class="s2">&quot;val3&quot;</span><span class="p">],</span><span class="nx">elem3</span><span class="o">:</span><span class="p">{</span><span class="nx">sub1</span><span class="o">:</span><span class="s2">&quot;val4&quot;</span><span class="p">}};</span>
      <span class="kd">var</span> <span class="nx">extWith</span> <span class="o">=</span> <span class="p">{</span><span class="nx">elem1</span><span class="o">:</span><span class="mi">1</span><span class="p">,</span><span class="nx">elem2</span><span class="o">:</span><span class="p">[</span><span class="s2">&quot;val4&quot;</span><span class="p">],</span><span class="nx">elem3</span><span class="o">:</span><span class="s2">&quot;val3&quot;</span><span class="p">};</span>
      <span class="kd">var</span> <span class="nx">shouldBe</span> <span class="o">=</span> <span class="p">{</span><span class="nx">elem1</span><span class="o">:</span><span class="mi">1</span><span class="p">,</span> <span class="nx">elem2</span><span class="o">:</span><span class="p">[</span><span class="s2">&quot;val4&quot;</span><span class="p">],</span><span class="nx">elem3</span><span class="o">:</span><span class="s2">&quot;val3&quot;</span><span class="p">};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">deepEqual</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_extendDeep</span><span class="p">(</span><span class="nx">orig</span><span class="p">,</span> <span class="nx">extWith</span><span class="p">),</span> <span class="nx">shouldBe</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Merges objects&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">orig</span> <span class="o">=</span> <span class="p">{</span><span class="nx">e1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">,</span> <span class="nx">elem2</span><span class="o">:</span><span class="p">{</span><span class="nx">sub1</span><span class="o">:</span><span class="s2">&quot;val4&quot;</span><span class="p">,</span><span class="nx">sub2</span><span class="o">:</span><span class="s2">&quot;val5&quot;</span><span class="p">}};</span>
      <span class="kd">var</span> <span class="nx">extWith</span> <span class="o">=</span> <span class="p">{</span><span class="nx">elem2</span><span class="o">:</span><span class="p">{</span><span class="nx">sub2</span><span class="o">:</span><span class="s2">&quot;val6&quot;</span><span class="p">,</span><span class="nx">sub3</span><span class="o">:</span><span class="s2">&quot;val7&quot;</span><span class="p">}};</span>
      <span class="kd">var</span> <span class="nx">shouldBe</span> <span class="o">=</span> <span class="p">{</span><span class="nx">e1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">,</span> <span class="nx">elem2</span><span class="o">:</span><span class="p">{</span><span class="nx">sub1</span><span class="o">:</span><span class="s2">&quot;val4&quot;</span><span class="p">,</span><span class="nx">sub2</span><span class="o">:</span><span class="s2">&quot;val6&quot;</span><span class="p">,</span><span class="nx">sub3</span><span class="o">:</span><span class="s2">&quot;val7&quot;</span><span class="p">}};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">deepEqual</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_extendDeep</span><span class="p">(</span><span class="nx">orig</span><span class="p">,</span> <span class="nx">extWith</span><span class="p">),</span> <span class="nx">shouldBe</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Correctly types new objects and arrays&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">orig</span> <span class="o">=</span> <span class="p">{</span><span class="nx">e1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">,</span> <span class="nx">e3</span><span class="o">:</span><span class="p">[</span><span class="s2">&quot;val5&quot;</span><span class="p">]};</span>
      <span class="kd">var</span> <span class="nx">extWith</span> <span class="o">=</span> <span class="p">{</span><span class="nx">e2</span><span class="o">:</span><span class="p">{</span><span class="nx">elem1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">},</span> <span class="nx">e3</span><span class="o">:</span><span class="p">[</span><span class="s2">&quot;val6&quot;</span><span class="p">,</span><span class="s2">&quot;val7&quot;</span><span class="p">]};</span>
      <span class="kd">var</span> <span class="nx">shouldBe</span> <span class="o">=</span> <span class="p">{</span><span class="nx">e1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">,</span> <span class="nx">e2</span><span class="o">:</span><span class="p">{</span><span class="nx">elem1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">},</span> <span class="nx">e3</span><span class="o">:</span><span class="p">[</span><span class="s2">&quot;val6&quot;</span><span class="p">,</span><span class="s2">&quot;val7&quot;</span><span class="p">]};</span>
      <span class="kd">var</span> <span class="nx">ext</span> <span class="o">=</span> <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_extendDeep</span><span class="p">({},</span> <span class="nx">orig</span><span class="p">,</span> <span class="nx">extWith</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">ext</span><span class="p">.</span><span class="nx">e2</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isArray</span><span class="p">(</span><span class="nx">ext</span><span class="p">.</span><span class="nx">e3</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Keeps non-merged objects intact&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">orig</span> <span class="o">=</span> <span class="p">{</span><span class="nx">e1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">,</span> <span class="nx">elem2</span><span class="o">:</span><span class="p">{</span><span class="nx">sub1</span><span class="o">:</span><span class="s2">&quot;val4&quot;</span><span class="p">,</span><span class="nx">sub2</span><span class="o">:</span><span class="s2">&quot;val5&quot;</span><span class="p">}};</span>
      <span class="kd">var</span> <span class="nx">shouldBe</span> <span class="o">=</span> <span class="p">{</span><span class="nx">e1</span><span class="o">:</span><span class="s2">&quot;val1&quot;</span><span class="p">,</span> <span class="nx">elem2</span><span class="o">:</span><span class="p">{</span><span class="nx">sub1</span><span class="o">:</span><span class="s2">&quot;val4&quot;</span><span class="p">,</span><span class="nx">sub2</span><span class="o">:</span><span class="s2">&quot;val5&quot;</span><span class="p">}};</span>
      <span class="kd">var</span> <span class="nx">extWith</span> <span class="o">=</span> <span class="p">{</span><span class="nx">elem3</span><span class="o">:</span><span class="p">{</span><span class="nx">sub2</span><span class="o">:</span><span class="s2">&quot;val6&quot;</span><span class="p">,</span><span class="nx">sub3</span><span class="o">:</span><span class="s2">&quot;val7&quot;</span><span class="p">}};</span>
      <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_extendDeep</span><span class="p">({},</span> <span class="nx">orig</span><span class="p">,</span> <span class="nx">extWith</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">deepEqual</span><span class="p">(</span><span class="nx">orig</span><span class="p">,</span> <span class="nx">shouldBe</span><span class="p">);</span>
    <span class="p">}</span>
  <span class="p">},</span>

  <span class="s1">&#39;_equalsDeep() tests&#39;</span><span class="o">:</span> <span class="p">{</span>
    <span class="s1">&#39;The function exists&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFunction</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Succeeds on two empty objects&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">({},</span> <span class="p">{}));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Succeeds on array comparisons&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">([</span><span class="mi">1</span><span class="p">,</span><span class="s1">&#39;hello&#39;</span><span class="p">,</span><span class="mi">2</span><span class="p">],</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="s1">&#39;hello&#39;</span><span class="p">,</span><span class="mi">2</span><span class="p">]));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Succeeds on the same object&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{</span><span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span> <span class="nx">a</span><span class="p">));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Succeeds on a regular object&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">};</span>
      <span class="kd">var</span> <span class="nx">b</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span> <span class="nx">b</span><span class="p">));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Succeeds on a deep object&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">value_4</span><span class="o">:</span><span class="p">[</span><span class="s1">&#39;now&#39;</span><span class="p">,</span><span class="s1">&#39;is&#39;</span><span class="p">,</span><span class="s1">&#39;the&#39;</span><span class="p">,</span><span class="s1">&#39;time&#39;</span><span class="p">]};</span>
      <span class="kd">var</span> <span class="nx">b</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">value_4</span><span class="o">:</span><span class="p">[</span><span class="s1">&#39;now&#39;</span><span class="p">,</span><span class="s1">&#39;is&#39;</span><span class="p">,</span><span class="s1">&#39;the&#39;</span><span class="p">,</span><span class="s1">&#39;time&#39;</span><span class="p">]};</span>
      <span class="kd">var</span> <span class="nx">c</span> <span class="o">=</span> <span class="p">{</span><span class="nx">creditLimit</span><span class="o">:</span> <span class="mi">10000</span><span class="p">,</span> <span class="nx">deepValue</span><span class="o">:</span> <span class="nx">a</span><span class="p">};</span>
      <span class="kd">var</span> <span class="nx">d</span> <span class="o">=</span> <span class="p">{</span><span class="nx">deepValue</span><span class="o">:</span> <span class="nx">b</span><span class="p">,</span> <span class="nx">creditLimit</span><span class="o">:</span><span class="mi">10000</span><span class="p">};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">(</span><span class="nx">c</span><span class="p">,</span> <span class="nx">d</span><span class="p">));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Fails if either object is null&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">({},</span> <span class="kc">null</span><span class="p">));</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">(</span><span class="kc">null</span><span class="p">,</span> <span class="p">{}));</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">(</span><span class="kc">null</span><span class="p">,</span> <span class="kc">null</span><span class="p">));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Fails if either object is undefined&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">({}));</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">[</span><span class="s1">&#39;noElement&#39;</span><span class="p">],</span> <span class="p">{}));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Fails if either object is undefined&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">({}));</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">[</span><span class="s1">&#39;noElement&#39;</span><span class="p">],</span> <span class="p">{}));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Fails if object1 has more elements&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">otherElem</span><span class="o">:</span> <span class="mi">40</span><span class="p">};</span>
      <span class="kd">var</span> <span class="nx">b</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span> <span class="nx">b</span><span class="p">));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Fails if object2 has more elements&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">};</span>
      <span class="kd">var</span> <span class="nx">b</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">otherElem</span><span class="o">:</span> <span class="mi">40</span><span class="p">};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span> <span class="nx">b</span><span class="p">));</span>
    <span class="p">},</span>
    <span class="s1">&#39;Fails if any value is different&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_1</span><span class="o">:</span> <span class="mi">30</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">value_4</span><span class="o">:</span><span class="p">[</span><span class="s1">&#39;now&#39;</span><span class="p">,</span><span class="s1">&#39;is&#39;</span><span class="p">,</span><span class="s1">&#39;the&#39;</span><span class="p">,</span><span class="s1">&#39;time&#39;</span><span class="p">]};</span>
      <span class="kd">var</span> <span class="nx">b</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">value_4</span><span class="o">:</span><span class="p">[</span><span class="s1">&#39;now&#39;</span><span class="p">,</span><span class="s1">&#39;is&#39;</span><span class="p">,</span><span class="s1">&#39;the&#39;</span><span class="p">,</span><span class="s1">&#39;time&#39;</span><span class="p">]};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span> <span class="nx">b</span><span class="p">));</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">value_4</span><span class="o">:</span><span class="p">[</span><span class="s1">&#39;now&#39;</span><span class="p">,</span><span class="s1">&#39;is&#39;</span><span class="p">,</span><span class="s1">&#39;the&#39;</span><span class="p">,</span><span class="s1">&#39;time&#39;</span><span class="p">]};</span>
      <span class="kd">var</span> <span class="nx">b</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">value_4</span><span class="o">:</span><span class="p">[</span><span class="s1">&#39;now&#39;</span><span class="p">,</span><span class="s1">&#39;isnt&#39;</span><span class="p">,</span><span class="s1">&#39;the&#39;</span><span class="p">,</span><span class="s1">&#39;time&#39;</span><span class="p">]};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFalse</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_equalsDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span> <span class="nx">b</span><span class="p">));</span>
    <span class="p">}</span>
  <span class="p">},</span>

  <span class="s1">&#39;_diffDeep() tests&#39;</span><span class="o">:</span> <span class="p">{</span>
    <span class="s1">&#39;The function exists&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFunction</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_diffDeep</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Returns an empty object if no differences&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">};</span>
      <span class="kd">var</span> <span class="nx">b</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="k">typeof</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_diffDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span><span class="nx">b</span><span class="p">)),</span> <span class="s1">&#39;object&#39;</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nb">Object</span><span class="p">.</span><span class="nx">keys</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_diffDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span> <span class="nx">b</span><span class="p">)).</span><span class="nx">length</span> <span class="o">==</span> <span class="mi">0</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Returns an empty object if no differences (deep)&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">deepObj</span><span class="o">:</span><span class="p">{</span><span class="nx">a</span><span class="o">:</span><span class="mi">22</span><span class="p">,</span><span class="nx">b</span><span class="o">:</span><span class="p">{</span><span class="nx">c</span><span class="o">:</span><span class="mi">45</span><span class="p">,</span><span class="nx">a</span><span class="o">:</span><span class="mi">44</span><span class="p">}}};</span>
      <span class="kd">var</span> <span class="nx">b</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">deepObj</span><span class="o">:</span><span class="p">{</span><span class="nx">a</span><span class="o">:</span><span class="mi">22</span><span class="p">,</span><span class="nx">b</span><span class="o">:</span><span class="p">{</span><span class="nx">a</span><span class="o">:</span><span class="mi">44</span><span class="p">,</span><span class="nx">c</span><span class="o">:</span><span class="mi">45</span><span class="p">}}};</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="k">typeof</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_diffDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span><span class="nx">b</span><span class="p">)),</span> <span class="s1">&#39;object&#39;</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nb">Object</span><span class="p">.</span><span class="nx">keys</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_diffDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span> <span class="nx">b</span><span class="p">)).</span><span class="nx">length</span> <span class="o">==</span> <span class="mi">0</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Returns just the diff values&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;wurld&#39;</span><span class="p">,</span> <span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">deepObj</span><span class="o">:</span><span class="p">{</span><span class="nx">a</span><span class="o">:</span><span class="mi">22</span><span class="p">,</span><span class="nx">b</span><span class="o">:</span><span class="p">{</span><span class="nx">c</span><span class="o">:</span><span class="mi">45</span><span class="p">,</span><span class="nx">a</span><span class="o">:</span><span class="mi">44</span><span class="p">}}};</span>
      <span class="kd">var</span> <span class="nx">b</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;world&#39;</span><span class="p">,</span> <span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">deepObj</span><span class="o">:</span><span class="p">{</span><span class="nx">a</span><span class="o">:</span><span class="mi">22</span><span class="p">,</span><span class="nx">b</span><span class="o">:</span><span class="p">{</span><span class="nx">a</span><span class="o">:</span><span class="mi">44</span><span class="p">,</span><span class="nx">c</span><span class="o">:</span><span class="mi">45</span><span class="p">}}};</span>
      <span class="kd">var</span> <span class="nx">diff</span> <span class="o">=</span> <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_diffDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span><span class="nx">b</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="nb">Object</span><span class="p">.</span><span class="nx">keys</span><span class="p">(</span><span class="nx">diff</span><span class="p">).</span><span class="nx">length</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="nx">diff</span><span class="p">.</span><span class="nx">hello</span><span class="p">,</span> <span class="s1">&#39;world&#39;</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Returns just the diff values (deep)&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;wurld&#39;</span><span class="p">,</span> <span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">deepObj</span><span class="o">:</span><span class="p">{</span><span class="nx">a</span><span class="o">:</span><span class="mi">22</span><span class="p">,</span><span class="nx">b</span><span class="o">:</span><span class="p">{</span><span class="nx">c</span><span class="o">:</span><span class="mi">45</span><span class="p">,</span><span class="nx">a</span><span class="o">:</span><span class="mi">44</span><span class="p">}}};</span>
      <span class="kd">var</span> <span class="nx">b</span> <span class="o">=</span> <span class="p">{</span><span class="nx">value_1</span><span class="o">:</span> <span class="mi">29</span><span class="p">,</span> <span class="nx">hello</span><span class="o">:</span><span class="s1">&#39;wurld&#39;</span><span class="p">,</span> <span class="nx">value_3</span><span class="o">:</span> <span class="mi">14</span><span class="p">,</span> <span class="nx">deepObj</span><span class="o">:</span><span class="p">{</span><span class="nx">a</span><span class="o">:</span><span class="mi">22</span><span class="p">,</span><span class="nx">b</span><span class="o">:</span><span class="p">{</span><span class="nx">a</span><span class="o">:</span><span class="mi">45</span><span class="p">,</span><span class="nx">c</span><span class="o">:</span><span class="mi">44</span><span class="p">}}};</span>
      <span class="kd">var</span> <span class="nx">diff</span> <span class="o">=</span> <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_diffDeep</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span><span class="nx">b</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="nb">Object</span><span class="p">.</span><span class="nx">keys</span><span class="p">(</span><span class="nx">diff</span><span class="p">).</span><span class="nx">length</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="nb">Object</span><span class="p">.</span><span class="nx">keys</span><span class="p">(</span><span class="nx">diff</span><span class="p">.</span><span class="nx">deepObj</span><span class="p">).</span><span class="nx">length</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="nb">Object</span><span class="p">.</span><span class="nx">keys</span><span class="p">(</span><span class="nx">diff</span><span class="p">.</span><span class="nx">deepObj</span><span class="p">.</span><span class="nx">b</span><span class="p">).</span><span class="nx">length</span><span class="p">,</span> <span class="mi">2</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="nx">diff</span><span class="p">.</span><span class="nx">deepObj</span><span class="p">.</span><span class="nx">b</span><span class="p">.</span><span class="nx">a</span><span class="p">,</span> <span class="mi">45</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="nx">diff</span><span class="p">.</span><span class="nx">deepObj</span><span class="p">.</span><span class="nx">b</span><span class="p">.</span><span class="nx">c</span><span class="p">,</span> <span class="mi">44</span><span class="p">);</span>
    <span class="p">}</span>
  <span class="p">},</span>

  <span class="s1">&#39;_stripComments() tests&#39;</span><span class="o">:</span> <span class="p">{</span>
    <span class="c1">// Only testing baseline stripComments functionality.</span>
<span class="c1">// This implementation handles lots of edge cases that aren&#39;t in these tests</span>
    <span class="s1">&#39;The function exists&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFunction</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_stripComments</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Leaves a simple string without comments alone&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="kd">var</span> <span class="nx">str</span> <span class="o">=</span> <span class="s2">&quot;Hello\nWorld&quot;</span><span class="p">;</span>
    <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_stripComments</span><span class="p">(</span><span class="nx">str</span><span class="p">),</span> <span class="nx">str</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Strips out line-type comments&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="kd">var</span> <span class="nx">str1</span> <span class="o">=</span> <span class="s2">&quot;var a=&#39;Hello&#39;; // Comment about the a variable&quot;</span><span class="p">;</span>
    <span class="kd">var</span> <span class="nx">str2</span> <span class="o">=</span> <span class="s2">&quot;var a=&#39;Hello&#39;; &quot;</span><span class="p">;</span>
    <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_stripComments</span><span class="p">(</span><span class="nx">str1</span><span class="p">),</span> <span class="nx">str2</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Strips out block-type comments&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="kd">var</span> <span class="nx">str1</span> <span class="o">=</span> <span class="s2">&quot;var a=&#39;Hello&#39;;/* Block Comment */ var b=24&quot;</span><span class="p">;</span>
    <span class="kd">var</span> <span class="nx">str2</span> <span class="o">=</span> <span class="s2">&quot;var a=&#39;Hello&#39;; var b=24&quot;</span><span class="p">;</span>
    <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_stripComments</span><span class="p">(</span><span class="nx">str1</span><span class="p">),</span> <span class="nx">str2</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Strips out multi-line block comments&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="kd">var</span> <span class="nx">str1</span> <span class="o">=</span> <span class="s2">&quot;var a=&#39;Hello&#39;;\n/* Block Comment\n Line 2 comment\n*/\nvar b=24&quot;</span><span class="p">;</span>
    <span class="kd">var</span> <span class="nx">str2</span> <span class="o">=</span> <span class="s2">&quot;var a=&#39;Hello&#39;;\n\nvar b=24&quot;</span><span class="p">;</span>
    <span class="nx">assert</span><span class="p">.</span><span class="nx">equal</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_stripComments</span><span class="p">(</span><span class="nx">str1</span><span class="p">),</span> <span class="nx">str2</span><span class="p">);</span>
    <span class="p">}</span>
  <span class="p">},</span>

  <span class="s1">&#39;_parseFile() tests&#39;</span><span class="o">:</span> <span class="p">{</span>
    <span class="nx">topic</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="k">return</span> <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_parseFile</span><span class="p">(</span><span class="nx">__dirname</span> <span class="o">+</span> <span class="s1">&#39;/config/default.yaml&#39;</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;The function exists&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFunction</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_parseFile</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;An object is returned&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">config</span><span class="p">)</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">config</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;The correct object is returned&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">config</span><span class="p">)</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">config</span><span class="p">.</span><span class="nx">Customers</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">config</span><span class="p">.</span><span class="nx">Customers</span><span class="p">.</span><span class="nx">dbName</span> <span class="o">==</span> <span class="s1">&#39;from_default_yaml&#39;</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">config</span><span class="p">.</span><span class="nx">Customers</span><span class="p">.</span><span class="nx">dbPort</span> <span class="o">==</span> <span class="mi">5984</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">config</span><span class="p">.</span><span class="nx">AnotherModule</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">config</span><span class="p">.</span><span class="nx">AnotherModule</span><span class="p">.</span><span class="nx">parm2</span> <span class="o">==</span> <span class="s2">&quot;value2&quot;</span><span class="p">);</span>
    <span class="p">}</span>
  <span class="p">},</span>

  <span class="s1">&#39;_loadFileConfigs() tests&#39;</span><span class="o">:</span> <span class="p">{</span>
    <span class="nx">topic</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="k">return</span> <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_loadFileConfigs</span><span class="p">();</span>
    <span class="p">},</span>
    <span class="s1">&#39;The function exists&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFunction</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_loadFileConfigs</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;An object is returned&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">configs</span><span class="p">)</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">configs</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;The correct object is returned&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">config</span><span class="p">)</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">config</span><span class="p">.</span><span class="nx">Customers</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">config</span><span class="p">.</span><span class="nx">Customers</span><span class="p">.</span><span class="nx">dbHost</span> <span class="o">==</span> <span class="s1">&#39;base&#39;</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">config</span><span class="p">.</span><span class="nx">Customers</span><span class="p">.</span><span class="nx">dbName</span> <span class="o">==</span> <span class="s1">&#39;override_from_runtime_json&#39;</span><span class="p">);</span>
    <span class="p">}</span>
  <span class="p">},</span>

  <span class="s1">&#39;_attachProtoDeep() tests&#39;</span><span class="o">:</span> <span class="p">{</span>
    <span class="nx">topic</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="c1">// Create an object that contains other objects to see</span>
      <span class="c1">// that the prototype is added to all objects.</span>
      <span class="kd">var</span> <span class="nx">watchThis</span> <span class="o">=</span> <span class="p">{</span>
        <span class="nx">subObject</span><span class="o">:</span> <span class="p">{</span>
          <span class="nx">item1</span><span class="o">:</span> <span class="mi">23</span><span class="p">,</span>
          <span class="nx">subSubObject</span><span class="o">:</span> <span class="p">{</span>
         <span class="nx">item2</span><span class="o">:</span> <span class="s2">&quot;hello&quot;</span>
          <span class="p">}</span>
        <span class="p">}</span>
      <span class="p">};</span>
      <span class="k">return</span> <span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_attachProtoDeep</span><span class="p">(</span><span class="nx">watchThis</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;The function exists&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isFunction</span><span class="p">(</span><span class="nx">CONFIG</span><span class="p">.</span><span class="nx">_attachProtoDeep</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;The original object is returned&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">config</span><span class="p">)</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">config</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">config</span><span class="p">.</span><span class="nx">subObject</span><span class="p">.</span><span class="nx">item1</span> <span class="o">===</span> <span class="mi">23</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">config</span><span class="p">.</span><span class="nx">subObject</span><span class="p">.</span><span class="nx">subSubObject</span><span class="p">.</span><span class="nx">item2</span> <span class="o">===</span> <span class="s2">&quot;hello&quot;</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;The _cloneDeep method is attached to the object&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">config</span><span class="p">)</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">({</span><span class="nx">a</span><span class="o">:</span><span class="mi">27</span><span class="p">}.</span><span class="nx">a</span> <span class="o">==</span> <span class="nx">config</span><span class="p">.</span><span class="nx">_cloneDeep</span><span class="p">({</span><span class="nx">a</span><span class="o">:</span><span class="mi">27</span><span class="p">}).</span><span class="nx">a</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;The _cloneDeep method is also attached to sub-objects&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">config</span><span class="p">)</span> <span class="p">{</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">({</span><span class="nx">a</span><span class="o">:</span><span class="mi">27</span><span class="p">}.</span><span class="nx">a</span> <span class="o">==</span> <span class="nx">config</span><span class="p">.</span><span class="nx">subObject</span><span class="p">.</span><span class="nx">_cloneDeep</span><span class="p">({</span><span class="nx">a</span><span class="o">:</span><span class="mi">27</span><span class="p">}).</span><span class="nx">a</span><span class="p">);</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">({</span><span class="nx">a</span><span class="o">:</span><span class="mi">27</span><span class="p">}.</span><span class="nx">a</span> <span class="o">==</span> <span class="nx">config</span><span class="p">.</span><span class="nx">subObject</span><span class="p">.</span><span class="nx">subSubObject</span><span class="p">.</span><span class="nx">_cloneDeep</span><span class="p">({</span><span class="nx">a</span><span class="o">:</span><span class="mi">27</span><span class="p">}).</span><span class="nx">a</span><span class="p">);</span>
    <span class="p">},</span>
    <span class="s1">&#39;Prototype methods are not exposed in the object&#39;</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">config</span><span class="p">)</span> <span class="p">{</span>
      <span class="c1">// This test is here because altering object.__proto__ places the method</span>
      <span class="c1">// directly onto the object. That caused problems when iterating over the</span>
      <span class="c1">// object. This implementation does the same thing, but hides them.</span>
      <span class="nx">assert</span><span class="p">.</span><span class="nx">isTrue</span><span class="p">(</span><span class="nx">JSON</span><span class="p">.</span><span class="nx">stringify</span><span class="p">(</span><span class="nx">config</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;{&quot;subObject&quot;:{&quot;item1&quot;:23,&quot;subSubObject&quot;:{&quot;item2&quot;:&quot;hello&quot;}}}&#39;</span><span class="p">);</span>
    <span class="p">}</span>
  <span class="p">}</span>

<span class="p">});</span>
</pre></div>
                    </div>
</div>
</div>
<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>Modules</h4>
                        <ul class="content">
                                <li class=""><a href="module_config.html" title="config">config</a></li>
                                <li class="selected"><a href="module_test.html" title="test">test</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>Classes</h4>
                        <ul class="content">
                                <li class=""><a href="ConfigTest.html" title="ConfigTest">ConfigTest</a></li>
                                <li class=""><a href="ProtectedTest.html" title="ProtectedTest">ProtectedTest</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>Files</h4>
                        <ul class="content">
                                <li class="selected"><a href="1-protected-test.js.html" title="1-protected-test.js">1-protected-test.js</a></li>
                                <li class=""><a href="2-config-test.js.html" title="2-config-test.js">2-config-test.js</a></li>
                                <li class=""><a href="default.js.html" title="default.js">default.js</a></li>
                        </ul>
                    </div>





            </div>
</div>
</div>
<div id="ft">
        <hr />
Released on <a href="https://github.com/lorenwest/node-config">github</a> under the <a href="https://github.com/lorenwest/node-config/blob/master/LICENSE">Apache License 2.0</a>
<span class="subtitle">version 0.4.18</span>
</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [];
</script>
</body>
</html>
Something went wrong with that request. Please try again.