Permalink
Browse files

fixed typos

  • Loading branch information...
1 parent a354c14 commit b437a313d6ab39700634e381a7a5c5982ed09b9c @chrisdew committed Feb 5, 2011
Showing with 6 additions and 6 deletions.
  1. +3 −3 docs/swoj-codec-test.html
  2. +3 −3 test/swoj-codec-test.js
@@ -3,10 +3,10 @@
<span class="p">,</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="p">,</span> <span class="nx">mock</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;./mock&#39;</span><span class="p">)</span>
<span class="p">,</span> <span class="nx">swoj</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;../lib/swoj-codec&#39;</span><span class="p">)</span>
- <span class="p">;</span></pre></div> </td> </tr> <tr id="section-2"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-2">&#182;</a> </div> <p>Create a process wide default DB, with mocked up uuids.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nx">process</span><span class="p">.</span><span class="nx">db</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">mock</span><span class="p">.</span><span class="nx">DB</span><span class="p">();</span></pre></div> </td> </tr> <tr id="section-3"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-3">&#182;</a> </div> <p><code>process.db</code> must exist before we can require our model. You can
+ <span class="p">;</span></pre></div> </td> </tr> <tr id="section-2"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-2">&#182;</a> </div> <p>Create a process wide MockDB, with mocked up uuids.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nx">process</span><span class="p">.</span><span class="nx">db</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">mock</span><span class="p">.</span><span class="nx">DB</span><span class="p">();</span></pre></div> </td> </tr> <tr id="section-3"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-3">&#182;</a> </div> <p><code>process.db</code> must exist before we can require our model. You can
leave your model untouched by BarricanDB and manually call
-<code>DB.registerInstance</code> as each new object is constructed. This way
-is generally easier.</p> </td> <td class="code"> <div class="highlight"><pre><span class="kd">var</span> <span class="nx">model</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;./demo-model&#39;</span><span class="p">);</span></pre></div> </td> </tr> <tr id="section-4"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-4">&#182;</a> </div> <p>Construct a simple model from which objects can be persisted.</p> </td> <td class="code"> <div class="highlight"><pre><span class="kd">var</span> <span class="nx">house</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">model</span><span class="p">.</span><span class="nx">House</span><span class="p">(</span><span class="s2">&quot;301 Cobblestone Wy., Bedrock, 70777&quot;</span><span class="p">);</span>
+<code>DB.registerInstance</code> as each new object is constructed, But This
+way is generally easier.</p> </td> <td class="code"> <div class="highlight"><pre><span class="kd">var</span> <span class="nx">model</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;./demo-model&#39;</span><span class="p">);</span></pre></div> </td> </tr> <tr id="section-4"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-4">&#182;</a> </div> <p>Construct a simple model from which objects can be persisted.</p> </td> <td class="code"> <div class="highlight"><pre><span class="kd">var</span> <span class="nx">house</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">model</span><span class="p">.</span><span class="nx">House</span><span class="p">(</span><span class="s2">&quot;301 Cobblestone Wy., Bedrock, 70777&quot;</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">fred</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">model</span><span class="p">.</span><span class="nx">Person</span><span class="p">(</span><span class="s2">&quot;Fred&quot;</span><span class="p">,</span> <span class="s2">&quot;Flintstone&quot;</span><span class="p">);</span>
<span class="nx">fred</span><span class="p">.</span><span class="nx">house</span> <span class="o">=</span> <span class="nx">house</span><span class="p">;</span>
<span class="kd">var</span> <span class="nx">wilma</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">model</span><span class="p">.</span><span class="nx">Person</span><span class="p">(</span><span class="s2">&quot;Wilma&quot;</span><span class="p">,</span> <span class="s2">&quot;Flintstone&quot;</span><span class="p">);</span>
View
@@ -7,13 +7,13 @@ var vows = require('vows')
, swoj = require('../lib/swoj-codec')
;
-// Create a process wide default DB, with mocked up uuids.
+// Create a process wide MockDB, with mocked up uuids.
process.db = new mock.DB();
// <code>process.db</code> must exist before we can require our model. You can
// leave your model untouched by BarricanDB and manually call
-// <code>DB.registerInstance</code> as each new object is constructed. This way
-// is generally easier.
+// <code>DB.registerInstance</code> as each new object is constructed, But This
+// way is generally easier.
var model = require('./demo-model');
// Construct a simple model from which objects can be persisted.

0 comments on commit b437a31

Please sign in to comment.