File tree Expand file tree Collapse file tree
infra/relay/src/agentActivity Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,28 +204,6 @@ describe("ApnsClient", () => {
204204 } ) . pipe ( Effect . provide ( layerTest ) ) ,
205205 ) ;
206206
207- it . effect ( "keeps a sounds-off alert silent when shortening it to fit 4096 bytes" , ( ) =>
208- Effect . gen ( function * ( ) {
209- const apns = yield * ApnsClient . ApnsClient ;
210- const request = apns . makeLiveActivityRequest ( {
211- event : "end" ,
212- token : "token" ,
213- state : sanitizeAgentActivityAggregateState ( {
214- ...state ,
215- activities : [ { ...state . activities [ 0 ] ! , threadTitle : "界" . repeat ( 200 ) } ] ,
216- } ) ,
217- alert : { title : "界" . repeat ( 800 ) , body : "界" . repeat ( 800 ) } ,
218- soundsEnabled : false ,
219- nowEpochSeconds : Math . floor ( now . epochMilliseconds / 1_000 ) ,
220- nowIso : DateTime . formatIso ( now ) ,
221- } ) ;
222-
223- const payload = request . payload as { aps : { alert : { title : string } } } ;
224- expect ( payload . aps . alert . title ) . toMatch ( / ^ 界 + \. \. \. $ / ) ;
225- expect ( payload . aps . alert ) . not . toHaveProperty ( "sound" ) ;
226- } ) . pipe ( Effect . provide ( layerTest ) ) ,
227- ) ;
228-
229207 it . effect ( "fits Live Activity updates at every sanitizer cap within 4096 bytes" , ( ) =>
230208 Effect . gen ( function * ( ) {
231209 const apns = yield * ApnsClient . ApnsClient ;
Original file line number Diff line number Diff line change @@ -886,7 +886,7 @@ describe("ApnsDeliveries", () => {
886886
887887 return Effect . gen ( function * ( ) {
888888 const deliveries = yield * ApnsDeliveries . ApnsDeliveries ;
889- const result = yield * deliveries . processSignedJob ( signed ) ;
889+ const result = yield * deliveries . processSignedJob ( yield * signed ) ;
890890
891891 expect ( result . ok ) . toBe ( true ) ;
892892 expect ( requests ) . toHaveLength ( 1 ) ;
You can’t perform that action at this time.
0 commit comments