-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
474 changed files
with
48,425 additions
and
44,236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-lerna-scopes', '@commitlint/config-conventional'] | ||
extends: ['@commitlint/config-lerna-scopes', '@commitlint/config-conventional'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
|
||
describe('API test post and get', function() { | ||
beforeEach(function() { | ||
cy.visit('/') | ||
}) | ||
|
||
it('successfully adds data to dynamodb', function() { | ||
// Check for user not signed up | ||
cy.get('input[name=itemNo]').type('1') | ||
cy.get('.amplify-submit-put-button').contains('Put').click() | ||
cy.get('.amplify-put-result').contains('post call succeed!') | ||
}) | ||
beforeEach(function() { | ||
cy.visit('/'); | ||
}); | ||
|
||
it('successfully adds data to dynamodb', function() { | ||
// Check for user not signed up | ||
cy.get('input[name=itemNo]').type('1'); | ||
cy.get('.amplify-submit-put-button') | ||
.contains('Put') | ||
.click(); | ||
cy.get('.amplify-put-result').contains('post call succeed!'); | ||
}); | ||
|
||
it('successfully get data from dynamodb', function() { | ||
// Check for user not signed up | ||
cy.get('.amplify-submit-get-button').contains('Get').click() | ||
cy.get('.amplify-get-result').contains('"itemNo":1') | ||
}) | ||
}) | ||
it('successfully get data from dynamodb', function() { | ||
// Check for user not signed up | ||
cy.get('.amplify-submit-get-button') | ||
.contains('Get') | ||
.click(); | ||
cy.get('.amplify-get-result').contains('"itemNo":1'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
|
||
describe('withAuthenticator Sign In', function() { | ||
beforeEach(function() { | ||
cy.visit('/') | ||
}) | ||
cy.visit('/'); | ||
}); | ||
|
||
it('throws error when user is not signed up', function() { | ||
// Check for user not signed up | ||
cy.get('input[name=username]').type('testuser') | ||
cy.get('input[name=password]').type('testPassword') | ||
cy.get('button').contains('Sign In').click() | ||
cy.get('div').contains('User does not exist') | ||
}) | ||
}) | ||
|
||
cy.get('input[name=username]').type('testuser'); | ||
cy.get('input[name=password]').type('testPassword'); | ||
cy.get('button') | ||
.contains('Sign In') | ||
.click(); | ||
cy.get('div').contains('User does not exist'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
export function defer (done) { | ||
if (typeof done === "function") { | ||
export function defer(done) { | ||
if (typeof done === 'function') { | ||
setImmediate(done); | ||
} | ||
} | ||
|
Oops, something went wrong.