-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
publish: Add Ubuntu 24.04 cozy-stack packages
generated from commit b2d4b2f
- Loading branch information
Travis CI User
committed
Sep 6, 2024
1 parent
a7e5fa8
commit f95322b
Showing
12 changed files
with
528 additions
and
470 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { getUnseenAnnouncements } from './helpers' | ||
|
||
describe('getUnseenAnnouncements', () => { | ||
it('should return unseen announcements', () => { | ||
const data = [ | ||
{ attributes: { uuid: '1', title: 'Announcement 1' } }, | ||
{ attributes: { uuid: '2', title: 'Announcement 2' } }, | ||
{ attributes: { uuid: '3', title: 'Announcement 3' } } | ||
] | ||
const announcements_seen = ['1', '3'] | ||
const expected = [{ attributes: { uuid: '2', title: 'Announcement 2' } }] | ||
|
||
const result = getUnseenAnnouncements(data, announcements_seen) | ||
|
||
expect(result).toEqual(expected) | ||
}) | ||
|
||
it('should return all announcements if announcements_seen is empty', () => { | ||
const data = [ | ||
{ attributes: { uuid: '1', title: 'Announcement 1' } }, | ||
{ attributes: { uuid: '2', title: 'Announcement 2' } }, | ||
{ attributes: { uuid: '3', title: 'Announcement 3' } } | ||
] | ||
const announcements_seen = [] | ||
const expected = [ | ||
{ attributes: { uuid: '1', title: 'Announcement 1' } }, | ||
{ attributes: { uuid: '2', title: 'Announcement 2' } }, | ||
{ attributes: { uuid: '3', title: 'Announcement 3' } } | ||
] | ||
|
||
const result = getUnseenAnnouncements(data, announcements_seen) | ||
|
||
expect(result).toEqual(expected) | ||
}) | ||
|
||
it('should return all announcements if announcements_seen is null', () => { | ||
const data = [ | ||
{ attributes: { uuid: '1', title: 'Announcement 1' } }, | ||
{ attributes: { uuid: '2', title: 'Announcement 2' } }, | ||
{ attributes: { uuid: '3', title: 'Announcement 3' } } | ||
] | ||
const announcements_seen = null | ||
const expected = [ | ||
{ attributes: { uuid: '1', title: 'Announcement 1' } }, | ||
{ attributes: { uuid: '2', title: 'Announcement 2' } }, | ||
{ attributes: { uuid: '3', title: 'Announcement 3' } } | ||
] | ||
|
||
const result = getUnseenAnnouncements(data, announcements_seen) | ||
|
||
expect(result).toEqual(expected) | ||
}) | ||
}) |
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 |
---|---|---|
|
@@ -6280,10 +6280,10 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/cozy-tsconfig/-/cozy-tsconfig-1.2.0.tgz#17e61f960f139fae4d26cbac2254b9ab632b269e" | ||
integrity sha512-TRHnY9goF3FzVlUbP7BcHxuN2XAA4AmppT4fHHZmTKaSwYTByVR1Al+riFMDbce94kJZ1wzl9WNLWQuqzGZ6Cw== | ||
|
||
cozy-ui@^111.8.1: | ||
version "111.8.1" | ||
resolved "https://registry.yarnpkg.com/cozy-ui/-/cozy-ui-111.8.1.tgz#589f6743811bbb0ec1e0e8ff55d65337e4752f23" | ||
integrity sha512-jbDCUlatd1djQe5kZ0P7eufiWcf3Sm6LuKOsoAPLCppPb849ywd6cdkVkYRkt+Hzpe7k0b1sZ0+/CRg+L3Fyaw== | ||
cozy-ui@111.9.0: | ||
version "111.9.0" | ||
resolved "https://registry.yarnpkg.com/cozy-ui/-/cozy-ui-111.9.0.tgz#45903a91cb8cf7394f590ae544ab60e3997feb04" | ||
integrity sha512-BDzmiUHLe1vUTGZwQApta9omiTTA17NfgpbYHhKvHDHaya+9K1i6caNLtwXzttFBliLgPe3wUFa+edsCkKKQuw== | ||
dependencies: | ||
"@babel/runtime" "^7.3.4" | ||
"@material-ui/core" "4.12.3" | ||
|
@@ -12299,9 +12299,9 @@ msgpack5@^4.0.2: | |
readable-stream "^2.3.6" | ||
safe-buffer "^5.1.2" | ||
|
||
"mui-bottom-sheet@https://github.com/cozy/mui-bottom-sheet.git#v1.0.9": | ||
"mui-bottom-sheet@git+https://github.com/cozy/mui-bottom-sheet.git#v1.0.9": | ||
version "1.0.8" | ||
resolved "https://github.com/cozy/mui-bottom-sheet.git#3dc4c2a245ab39079bc2f73546bccf80847be14c" | ||
resolved "git+https://github.com/cozy/mui-bottom-sheet.git#3dc4c2a245ab39079bc2f73546bccf80847be14c" | ||
dependencies: | ||
"@juggle/resize-observer" "^3.1.3" | ||
jest-environment-jsdom-sixteen "^1.0.3" | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.