Skip to content

Commit 4cf7fd5

Browse files
RubenVerborghdmitrizagidulin
authored andcommitted
Follow Mocha naming conventions.
End tests in -test.
1 parent 66e8f8a commit 4cf7fd5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+42
-40
lines changed

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,17 @@
9898
"scripts": {
9999
"solid": "node ./bin/solid",
100100
"standard": "standard",
101-
"mocha": "NODE_TLS_REJECT_UNAUTHORIZED=0 nyc mocha ./test/**/*.js",
102-
"test": "npm run standard && npm run mocha",
103-
"test-integration": "mocha ./test/integration/*.js",
104-
"test-unit": "mocha ./test/unit/*.js",
105-
"test-debug": "DEBUG='solid:*' ./node_modules/mocha/bin/mocha ./test/*.js",
106-
"test-acl": "./node_modules/mocha/bin/mocha ./test/acl.js",
107-
"test-params": "./node_modules/mocha/bin/mocha ./test/params.js",
108-
"test-http": "./node_modules/mocha/bin/mocha ./test/http.js",
109-
"test-formats": "./node_modules/mocha/bin/mocha ./test/formats.js",
110-
"test-errors": "./node_modules/mocha/bin/mocha ./test/errors.js",
101+
"nyc": "NODE_TLS_REJECT_UNAUTHORIZED=0 nyc mocha",
102+
"mocha": "NODE_TLS_REJECT_UNAUTHORIZED=0 mocha",
103+
"test": "npm run standard && npm run nyc",
104+
"test-integration": "npm run mocha ./test/integration/**/*-test.js",
105+
"test-unit": "npm run mocha ./test/unit/*.js",
106+
"test-debug": "DEBUG='solid:*' npm run mocha",
107+
"test-acl": "npm run mocha ./test/**/*acl*-test.js",
108+
"test-params": "npm run mocha ./test/integration/params-test.js",
109+
"test-http": "npm run mocha ./test/integration/http-test.js",
110+
"test-formats": "npm run mocha ./test/integration/formats-test.js",
111+
"test-errors": "npm run mocha ./test/integration/errors-test.js",
111112
"clean": "rm -rf config.json accounts profile inbox .acl settings .meta .meta.acl",
112113
"clean-account": "rm -rf accounts profile inbox .acl .meta settings .meta.acl"
113114
},

test/integration/account-creation-oidc.js renamed to test/integration/account-creation-oidc-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const supertest = require('supertest')
22
// Helper functions for the FS
33
const $rdf = require('rdflib')
44

5-
const { rm, read } = require('../test-utils')
5+
const { rm, read } = require('../utils')
66
const ldnode = require('../../index')
77
const path = require('path')
88
const fs = require('fs-extra')

test/integration/account-creation-tls.js renamed to test/integration/account-creation-tls-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// // Helper functions for the FS
33
// const $rdf = require('rdflib')
44
//
5-
// const { rm, read } = require('../test-utils')
5+
// const { rm, read } = require('../utils')
66
// const ldnode = require('../../index')
77
// const fs = require('fs-extra')
88
// const path = require('path')
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const assert = require('chai').assert
22
const fs = require('fs-extra')
33
const request = require('request')
44
const path = require('path')
5-
const rm = require('../test-utils').rm
5+
const rm = require('../utils').rm
66

77
const ldnode = require('../../index')
88

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ var path = require('path')
1010
*/
1111

1212
// Helper functions for the FS
13-
var rm = require('../test-utils').rm
14-
// var write = require('./test-utils').write
15-
// var cp = require('./test-utils').cp
16-
// var read = require('./test-utils').read
13+
var rm = require('../utils').rm
14+
// var write = require('./utils').write
15+
// var cp = require('./utils').cp
16+
// var read = require('./utils').read
1717

1818
var ldnode = require('../../index')
1919
var ns = require('solid-namespace')($rdf)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require('path')
33
const nock = require('nock')
44
const request = require('supertest')
55
const { expect } = require('chai')
6-
const rm = require('../test-utils').rm
6+
const rm = require('../utils').rm
77

88
const HOST = 'solid.org'
99
const USER = 'https://ruben.verborgh.org/profile/#me'
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)