From b8deafd11c29c199411e8d9fcc459da6b7f41827 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Wed, 1 Apr 2020 15:42:14 +0000 Subject: [PATCH] finished renaming --- cli.mjs | 2 +- lib/cli.mjs | 8 ++++---- package-lock.json | 5 ----- package.json | 2 +- 4 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 package-lock.json diff --git a/cli.mjs b/cli.mjs index 05447ab..53aff84 100644 --- a/cli.mjs +++ b/cli.mjs @@ -8,7 +8,7 @@ import { CLI, printError } from './lib/cli.mjs' e.begin() -const cli = new CLI(c) +const cli = new CLI(e) cli.parseOptions(args) if (cli.errored) { diff --git a/lib/cli.mjs b/lib/cli.mjs index 8e16777..97051b7 100644 --- a/lib/cli.mjs +++ b/lib/cli.mjs @@ -1,8 +1,8 @@ import path from 'path' import fs from 'fs' -export function CLI(c) { - this.c = c +export function CLI(e) { + this.e = e this.reporter = 'list' this.targets = ['test/**'] this.files = [] @@ -59,9 +59,9 @@ CLI.prototype.loadFiles = async function() { for (let i = 0; i < this.files.length; i++) { if (this.files[i].endsWith('.mjs') || this.files[i].endsWith('.js')) { - this.c.setFilename(this.files[i]) + this.e.setFilename(this.files[i]) await import('file:///' + path.join(cwd, this.files[i])) - this.c.resetFilename() + this.e.resetFilename() } } } diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index aa620f0..0000000 --- a/package-lock.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "casette", - "version": "0.9.2", - "lockfileVersion": 1 -} diff --git a/package.json b/package.json index 25017dc..eb52563 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eltro", - "version": "0.9.2", + "version": "0.8.9", "description": "Eltro is a small no-dependancy test framework for node", "main": "index.mjs", "scripts": {