Skip to content

Commit 8fe05b1

Browse files
author
horike37
committed
chore: update test code
1 parent 9f41894 commit 8fe05b1

23 files changed

+1217
-6797
lines changed

lib/apiGateway/methods.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('#getAllServiceProxies()', () => {
1313
let serverlessApigatewayServiceProxy
1414

1515
beforeEach(() => {
16-
serverless = new Serverless()
16+
serverless = new Serverless({ commands: [], options: {} })
1717
serverless.servicePath = true
1818
serverless.service.service = 'apigw-service-proxy'
1919
const options = {

lib/apiGateway/validate.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('#validateServiceProxies()', () => {
1313
let serverlessApigatewayServiceProxy
1414

1515
beforeEach(() => {
16-
serverless = new Serverless()
16+
serverless = new Serverless({ commands: [], options: {} })
1717
serverless.servicePath = true
1818
serverless.service.service = 'apigw-service-proxy'
1919
const options = {

lib/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('#index()', () => {
1717
let serverlessApigatewayServiceProxy
1818

1919
beforeEach(() => {
20-
serverless = new Serverless()
20+
serverless = new Serverless({ commands: [], options: {} })
2121
serverless.servicePath = true
2222
serverless.service.service = 'apigw-service-proxy'
2323
const options = {

lib/package/dynamodb/compileIamRoleToDynamodb.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('#compileIamRoleToDynamodb()', () => {
1111
let serverlessApigatewayServiceProxy
1212

1313
beforeEach(() => {
14-
serverless = new Serverless()
14+
serverless = new Serverless({ commands: [], options: {} })
1515
serverless.servicePath = true
1616
serverless.service.service = 'apigw-service-proxy'
1717
const options = {

lib/package/dynamodb/compileMethodsToDynamodb.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('#compileMethodsToDynamodb()', () => {
7171
let serverlessApigatewayServiceProxy
7272

7373
beforeEach(() => {
74-
serverless = new Serverless()
74+
serverless = new Serverless({ commands: [], options: {} })
7575
serverless.servicePath = true
7676
serverless.service.service = 'apigw-service-proxy'
7777
const options = {

lib/package/eventbridge/compileEventBridgeServiceProxy.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('#compileEventBridgeServiceProxy', () => {
1313
let serverlessApigatewayServiceProxy
1414

1515
beforeEach(() => {
16-
serverless = new Serverless()
16+
serverless = new Serverless({ commands: [], options: {} })
1717
serverless.servicePath = true
1818
serverless.service.service = 'apigw-service-proxy'
1919
const options = {

lib/package/eventbridge/compileIamRoleToEventBridge.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('#compileIamRoleToEventBridge()', () => {
1111
let serverlessApigatewayServiceProxy
1212

1313
beforeEach(() => {
14-
serverless = new Serverless()
14+
serverless = new Serverless({ commands: [], options: {} })
1515
serverless.servicePath = true
1616
serverless.service.service = 'apigw-service-proxy'
1717
const options = {

lib/package/eventbridge/compileMethodsToEventBridge.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('#compileMethodsToEventBridge()', () => {
1111
let serverlessApigatewayServiceProxy
1212

1313
beforeEach(() => {
14-
serverless = new Serverless()
14+
serverless = new Serverless({ commands: [], options: {} })
1515
serverless.servicePath = true
1616
serverless.service.service = 'apigw-service-proxy'
1717
const options = {

lib/package/kinesis/compileIamRoleToKinesis.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('#compileIamRoleToKinesis()', () => {
1111
let serverlessApigatewayServiceProxy
1212

1313
beforeEach(() => {
14-
serverless = new Serverless()
14+
serverless = new Serverless({ commands: [], options: {} })
1515
serverless.servicePath = true
1616
serverless.service.service = 'apigw-service-proxy'
1717
const options = {

lib/package/kinesis/compileKinesisServiceProxy.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('#compileKinesisServiceProxy', () => {
1313
let serverlessApigatewayServiceProxy
1414

1515
beforeEach(() => {
16-
serverless = new Serverless()
16+
serverless = new Serverless({ commands: [], options: {} })
1717
serverless.servicePath = true
1818
serverless.service.service = 'apigw-service-proxy'
1919
const options = {

0 commit comments

Comments
 (0)