Skip to content

Commit

Permalink
#67 removed coverage from README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
itayw committed Apr 8, 2014
1 parent 95050a4 commit 1c61235
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# joola.io.sdk [![Build Status][3]][4] [![Coverage Status][1]][2] [![Gitter chat](https://badges.gitter.im/joola/joola.io.png)](https://gitter.im/joola/joola.io)
# joola.io.sdk [![Build Status][3]][4] [![Gitter chat](https://badges.gitter.im/joola/joola.io.png)](https://gitter.im/joola/joola.io)

| **[API Docs] [apidocs]** | **[joola.io Docs] [techdocs]** | **[Issues] [issues]** | **[Contributing] [contributing]** | **[About] [about]** |
|-------------------------------------|-------------------------------|-------------------------------------|---------------------------------------------|-------------------------------------|
Expand Down
10 changes: 5 additions & 5 deletions test/unit/2_common/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe("common", function () {
b: 2
};

joola.common.stringify(obj, function (err, str) {
joolaio.common.stringify(obj, function (err, str) {
expect(str).to.equal(JSON.stringify(obj));
done();
});
Expand All @@ -18,29 +18,29 @@ describe("common", function () {
};
var str = JSON.stringify(obj);

joola.common.parse(str, function (err, _obj) {
joolaio.common.parse(str, function (err, _obj) {
expect(str).to.equal(JSON.stringify(_obj));
done();
});
});

it("should hash strings correctly", function () {
var expected = '26207976637e23e1bed51683c33a6d73';
var actual = joola.common.hash('thisisatestforhash');
var actual = joolaio.common.hash('thisisatestforhash');
expect(actual).to.equal(expected);
});

it("should generate uuid - 9 chars long", function () {
var expected = 9;
var actual = joola.common.uuid().length;
var actual = joolaio.common.uuid().length;
expect(actual).to.equal(expected);
});

it("should generate uuid - unique", function (done) {
var ids = [];

for (var i = 0; i < 3200; i++) {
var uuid = joola.common.uuid();
var uuid = joolaio.common.uuid();
if (ids.indexOf(uuid) > -1) {
return done(new Error('Found duplicate uuid [' + uuid + ']'));
}
Expand Down

0 comments on commit 1c61235

Please sign in to comment.