From 2770fad85650a6e431719dc508056a43948372f7 Mon Sep 17 00:00:00 2001 From: brunosimon Date: Tue, 18 Jul 2017 04:03:47 +0200 Subject: [PATCH] :sparkles: Add NPM test script --- lib/app/site/models/file.js | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/app/site/models/file.js b/lib/app/site/models/file.js index cade3bb..f0832fb 100644 --- a/lib/app/site/models/file.js +++ b/lib/app/site/models/file.js @@ -9,13 +9,13 @@ class File constructor(_options) { // Set up - this.id = ids.get_id() - this.name = _options.name - this.path = {} + this.id = ids.getId() + this.name = _options.name + this.path = {} this.path.directory = _options.path - this.path.full = this.path.directory + '/' + this.name - this.versions = [] - this.socket = _options.socket + this.path.full = this.path.directory + '/' + this.name + this.versions = [] + this.socket = _options.socket const nameParts = this.name.split('.') diff --git a/package.json b/package.json index e9a08a4..20527f3 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ }, "main": "bin/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "demo-folder": "cd test/demo-folder && node ../../bin 'Demo folder'" }, "repository": { "type": "git",