diff --git a/test/version.js b/test/version.js new file mode 100644 index 0000000..d3c38e1 --- /dev/null +++ b/test/version.js @@ -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"); + }); +});