Tizen 2.0 Release
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.2.0 / node_modules / grunt / node_modules / prompt / node_modules / winston / node_modules / loggly / test / common-test.js
1 /*
2  * common-test.js: Tests for Loggly `common` utility module
3  *
4  * (C) 2010 Nodejitsu Inc.
5  * MIT LICENSE
6  *
7  */
8  
9 var path = require('path'),
10     vows = require('vows'),
11     assert = require('assert'),
12     common = require('../lib/loggly/common');
13
14 vows.describe('node-loggly/common').addBatch({
15   "When using the common module": {
16     "the clone() method": {
17       topic: function () {
18         this.obj = {
19           name: 'common',
20           deep: {
21             first: 'first',
22             second: 'second'
23           }
24         };
25         return common.clone(this.obj);
26       },
27       "should return a deep clone of the object": function (clone) {
28         assert.isFalse(this.obj.deep === clone.deep);
29       }
30     }
31   }
32 }).export(module);