From 1dbd350783f04743bd759cc5ae1e1e3633d550ff Mon Sep 17 00:00:00 2001 From: Naitik Shah Date: Tue, 7 Sep 2021 10:38:40 +0400 Subject: [PATCH] make test work again --- .gitignore | 1 + package.json | 8 +++++--- test/tmpl-test.js | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 656402b..50811db 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /lib-cov/ /node_modules/ /npm-debug.log +/package-lock.json diff --git a/package.json b/package.json index 554107e..3236604 100644 --- a/package.json +++ b/package.json @@ -3,15 +3,17 @@ "description": "JavaScript micro templates.", "version": "1.0.4", "license": "BSD-3-Clause", - "homepage": "https://github.com/nshah/nodejs-tmpl", + "homepage": "https://github.com/daaku/nodejs-tmpl", "author": "Naitik Shah ", "main": "lib/tmpl", "repository": { "type": "git", "url": "https://github.com/daaku/nodejs-tmpl" }, - "scripts": { "test": "NODE_PATH=./lib mocha --ui exports" }, + "scripts": { + "test": "NODE_PATH=./lib mocha --ui exports" + }, "devDependencies": { - "mocha": "0.12.x" + "mocha": "^9.1.1" } } diff --git a/test/tmpl-test.js b/test/tmpl-test.js index cc33ccd..42dbfe3 100644 --- a/test/tmpl-test.js +++ b/test/tmpl-test.js @@ -1,4 +1,4 @@ -var tmpl = require('tmpl') +var tmpl = require('../lib/tmpl') , assert = require('assert') exports['basic name substitution'] = function() {