Skip to content

Commit

Permalink
lint all js files
Browse files Browse the repository at this point in the history
  • Loading branch information
clareliguori committed Nov 2, 2019
1 parent 31ae361 commit 77b589f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.test.js
Expand Up @@ -19,7 +19,7 @@ describe('Login to ECR', () => {
beforeEach(() => {
jest.clearAllMocks();

mockEcrGetAuthToken.mockImplementation((params) => {
mockEcrGetAuthToken.mockImplementation(() => {
return {
promise() {
return Promise.resolve({
Expand Down Expand Up @@ -49,7 +49,7 @@ describe('Login to ECR', () => {

test('gets auth token from ECR and logins the Docker client for each provided registry', async () => {
core.getInput = jest.fn().mockReturnValueOnce('123456789012,111111111111');
mockEcrGetAuthToken.mockImplementation((params) => {
mockEcrGetAuthToken.mockImplementation(() => {
return {
promise() {
return Promise.resolve({
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -4,9 +4,9 @@
"description": "Logs in the local Docker client to the AWS account's ECR registry",
"main": "index.js",
"scripts": {
"lint": "eslint index.js",
"lint": "eslint **.js",
"package": "ncc build index.js -o dist",
"test": "eslint index.js && jest --coverage"
"test": "eslint **.js && jest --coverage"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 77b589f

Please sign in to comment.