Skip to content

Commit 9f77b12

Browse files
committed
changing naming conventions
1 parent 37a89f3 commit 9f77b12

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

browserstack-mocha-export.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@ function declareVariables() {
6666
codeExport.opts.hooks.declareVariables = new exporter.hook(declareVariables())
6767

6868
function generateTestDeclaration(name) {
69-
return `it('test', async function() {`
69+
return `it('${name}', async function() {`
7070
}
7171

7272
codeExport.opts.generateTestDeclaration = generateTestDeclaration
73+
74+
function generateSuiteDeclaration(name) {
75+
return `describe('TestCase', function() {`
76+
}
77+
78+
codeExport.opts.generateSuiteDeclaration = generateSuiteDeclaration
7379
export default codeExport

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "git",
55
"url": "git+https://github.com/mattonem/browserstack-side-runner.git"
66
},
7-
"version": "2.1.0",
7+
"version": "2.2.0",
88
"main": "index.mjs",
99
"homepage": "https://github.com/mattonem/browserstack-side-runner#readme",
1010
"scripts": {

0 commit comments

Comments
 (0)