Skip to content

Commit

Permalink
Add version test
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Feb 9, 2014
1 parent 9e2bab4 commit 7965dd5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* global describe, it */

"use strict";

var fs = require("fs");
var typify = require("../lib/typify.js");
var assert = require("assert");

describe("version", function () {
it("same in package.json and inside lib", function () {
var pkg = JSON.parse(fs.readFileSync(__dirname + "/../package.json"));
assert(pkg.version === typify.version.join("."), "version string should be same");
});
});

0 comments on commit 7965dd5

Please sign in to comment.