Commit 6f7f276
committed
test(audience-sdk): pin Constants.LibraryName against package.json name
ConstantsTests already pinned Constants.LibraryVersion against the
package.json "version" field so the two cannot silently drift; the
matching pin for Constants.LibraryName ("com.immutable.audience") and
package.json "name" was missing. Both feed context.library /
context.libraryVersion on every outgoing event, so a rename of either
side without the other would silently miscategorise events on the
backend.
Add a sibling LibraryName_MatchesPackageJson test that walks up to
the same package.json and asserts the two strings match. Reuses the
existing ReadPackageJson helper.
Follow-up to SDK-272 (centralisation of duplicated literals).1 parent 427f963 commit 6f7f276
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
72 | 86 | | |
73 | 87 | | |
74 | 88 | | |
| |||
0 commit comments