finished renaming

This commit is contained in:
Jonatan Nilsson 2020-04-01 15:42:14 +00:00
parent 4d695338e0
commit b8deafd11c
4 changed files with 6 additions and 11 deletions

View file

@ -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) {

View file

@ -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()
}
}
}

5
package-lock.json generated
View file

@ -1,5 +0,0 @@
{
"name": "casette",
"version": "0.9.2",
"lockfileVersion": 1
}

View file

@ -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": {