Skip to content

Commit

Permalink
Use absolute path for factory.js
Browse files Browse the repository at this point in the history
Signed-off-by: Scar26 <mmatty26@gmail.com>
  • Loading branch information
Scar26 committed May 25, 2020
1 parent 1aa6dc9 commit 068bcc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { VM } = require('vm2')
const fs = require('fs')
const ctx = fs.readFileSync('./factory.js').toString()
const path = require('path') // eslint-disable-line no-unused-vars
const ctx = fs.readFileSync(`${__dirname}/factory.js`).toString()

class Bot {
constructor (name, greeting, trainingSet) {
Expand Down
33 changes: 0 additions & 33 deletions test/factory.js

This file was deleted.

0 comments on commit 068bcc8

Please sign in to comment.