-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [eas-cli] Add createdAt to AppleDeviceFragment Added a new field to gql type to fetch it later See: https://linear.app/expo/issue/ENG-10334/show-creation-time-of-device-record-in-ad-hoc-device-selection-prompt * [eas-cli] Generate gql schema Generated a new graphql schema based on updated local version of www See: https://linear.app/expo/issue/ENG-10334/show-creation-time-of-device-record-in-ad-hoc-device-selection-prompt * [eas-cli] Fix mutation Fixed mutation that started to fail after schema update See: https://linear.app/expo/issue/ENG-10334/show-creation-time-of-device-record-in-ad-hoc-device-selection-prompt * [eas-cli] Display creation date Added creation date to the AppleDevice formatting function used to display details in cli See: https://linear.app/expo/issue/ENG-10334/show-creation-time-of-device-record-in-ad-hoc-device-selection-prompt * [eas-cli] Add changelog Manually added the changelog entry since the automation failed for some reason See: https://linear.app/expo/issue/ENG-10334/show-creation-time-of-device-record-in-ad-hoc-device-selection-prompt
- Loading branch information
1 parent
91787e1
commit aa14f21
Showing
7 changed files
with
100 additions
and
38 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
25 changes: 25 additions & 0 deletions
25
packages/eas-cli/src/credentials/ios/actions/__tests__/DeviceUtils-test.ts
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { v4 as uuidv4 } from 'uuid'; | ||
|
||
import { AppleDeviceClass, AppleDeviceFragment } from '../../../../graphql/generated'; | ||
import { formatDeviceLabel } from '../DeviceUtils'; | ||
|
||
describe(formatDeviceLabel, () => { | ||
it('returns createdAt clause', async () => { | ||
const currentDate = new Date(); | ||
const appleDevice = { | ||
__typename: 'AppleDevice', | ||
id: uuidv4(), | ||
identifier: 'test-apple-device-id', | ||
name: 'test-apple-device-name', | ||
model: '15', | ||
deviceClass: AppleDeviceClass.Iphone, | ||
createdAt: currentDate.toISOString(), | ||
} as AppleDeviceFragment; | ||
|
||
const result = formatDeviceLabel(appleDevice); | ||
|
||
expect(result).toEqual( | ||
`test-apple-device-id (iPhone 15) (test-apple-device-name) (created at: ${currentDate.toISOString()})` | ||
); | ||
}); | ||
}); |
Oops, something went wrong.