Skip to content

Commit e835b9d

Browse files
committed
fix main pages path
1 parent 0108c3b commit e835b9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/template/request.dot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const chai = require('chai')
22
chai.use(require('chai-http'))
3-
const main = require('./main.pages');
3+
const main = require('{{mainpagesPath}}');
44
const json_responses = require('{{jsonSchemaPath}}');
55
const requestHelper = require('{{helperPath}}');
66
require('dotenv').config()
@@ -9,7 +9,7 @@ class request extends main {
99
constructor() {
1010
// Write your constructor here, if you need
1111
super()
12-
this.api = this.mainServices() // Set up the api with the endpoint based on the environment and change this according to endpoint service
12+
this.api = this.mainService() // Set up the api with the endpoint based on the environment and change this according to endpoint service
1313
this.path = "{{endpoint}}" // Set up the API path to the route endpoint
1414
}
1515

lib/template/requestWithAttach.dot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const chai = require('chai')
22
chai.use(require('chai-http'))
3-
const main = require('./main.pages');
3+
const main = require('{{mainpagesPath}}');
44
const json_responses = require('{{jsonSchemaPath}}');
55
const requestHelper = require('{{helperPath}}');
66
require('dotenv').config()
@@ -9,7 +9,7 @@ class request extends main {
99
constructor() {
1010
// Write your constructor here, if you need
1111
super()
12-
this.api = this.mainServices() // Set up the api with the endpoint based on the environment and change this according to endpoint service
12+
this.api = this.mainService() // Set up the api with the endpoint based on the environment and change this according to endpoint service
1313
this.path = "{{endpoint}}" // Set up the API path to the route endpoint
1414
}
1515

0 commit comments

Comments
 (0)