forked from aws-amplify/amplify-js
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Datastore/feat user agent suffix (aws-amplify#10086)
* Adds suffix to user agent for calls to API initiated by DataStore * Attempts to fix first half of user agent not being sent * Makes setting of user agent header more concise * Moves appending of suffix to user agent to core library * Moves user agent suffix constant to common util in datastore * Removes unused import * Unit test for api-graphql * Pulls in user agent suffix from datastore utils class * Adds unit test for getAmplifyUserAgent with and without content * Fixes issue found while testing, line too long. * Adds test for DataStore mutation.ts * Tests user agent suffix in datastore sync * Adds user agent suffix assertion to subscription test * Fixes variable declaration: const instead of let * Removes leftover lines of code from testing objectContains * Removes code style changes unrelated to user agent suffix * Removes code style changes unrelated to user agent suffix * Removes unnecessary null value option for userAgentSuffix - undefined is sufficient * Replaces imports from lib-esm * Replaces hard-coded string in assertion with constant from util file * Moves var declaration under import * Makes test method names more descriptive Co-authored-by: Erin Beal <erinleig@amazon.com>
- Loading branch information
1 parent
8e49b0d
commit 633a839
Showing
12 changed files
with
202 additions
and
46 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
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
Oops, something went wrong.