Comparing version 1.0.1 to 1.0.2
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://homer0.github.io/jimpex/", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"repository": "homer0/jimpex", | ||
@@ -8,0 +8,0 @@ "author": "Leonardo Apiwan (@homer0) <me@homer0.com>", |
@@ -220,3 +220,3 @@ const Jimple = require('jimple'); | ||
if (expressOptions.trustProxy) { | ||
this.express.set('trust proxy'); | ||
this.express.enable('trust proxy'); | ||
} | ||
@@ -223,0 +223,0 @@ |
@@ -102,4 +102,4 @@ const JimpleMock = require('/tests/mocks/jimple.mock'); | ||
}); | ||
expect(expressMock.mocks.set).toHaveBeenCalledTimes(1); | ||
expect(expressMock.mocks.set).toHaveBeenCalledWith('trust proxy'); | ||
expect(expressMock.mocks.enable).toHaveBeenCalledTimes(1); | ||
expect(expressMock.mocks.enable).toHaveBeenCalledWith('trust proxy'); | ||
expect(expressMock.mocks.disable).toHaveBeenCalledTimes(1); | ||
@@ -218,3 +218,3 @@ expect(expressMock.mocks.disable).toHaveBeenCalledWith('x-powered-by'); | ||
// Then | ||
expect(expressMock.mocks.set).toHaveBeenCalledTimes(0); | ||
expect(expressMock.mocks.enable).toHaveBeenCalledTimes(0); | ||
}); | ||
@@ -221,0 +221,0 @@ |
const mocks = { | ||
set: jest.fn(), | ||
enable: jest.fn(), | ||
disable: jest.fn(), | ||
@@ -4,0 +5,0 @@ use: jest.fn(), |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
441952
6748