@@ -42,16 +42,6 @@ describe('ZDAEventURLSolidProject', function test_ZDAEventURLSolidProject() {
4242
4343} ) ;
4444
45- describe ( 'ZDAEventURLZeroData' , function test_ZDAEventURLZeroData ( ) {
46-
47- it ( 'returns string' , function ( ) {
48- deepEqual ( mod . ZDAEventURLZeroData ( ) , mod . ZDAEventURLs ( ) . filter ( function ( e ) {
49- return e . match ( / 0 d a t a / i) ;
50- } ) . shift ( ) ) ;
51- } ) ;
52-
53- } ) ;
54-
5545describe ( '_DataEventObjects' , function test__DataEventObjects ( ) {
5646
5747 it ( 'throws if param1 not in ZDAEventURLs' , function ( ) {
@@ -167,41 +157,6 @@ describe('_DataEventObjects', function test__DataEventObjects() {
167157
168158 } ) ;
169159
170- context ( 'ZeroData' , function test_ZeroData ( ) {
171-
172- const uEvent = function ( inputData = { } ) {
173- const item = Object . assign ( {
174- ZDAEventURL : Math . random ( ) . toString ( ) ,
175- ZDAEventName : Math . random ( ) . toString ( ) ,
176- ZDAEventStart : new Date ( ) ,
177- } , inputData ) ;
178-
179- return `<?xml version="1.0" encoding="UTF-8" ?>
180- <rss version="2.0" xmlns:discourse="http://www.discourse.org/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><atom:link href="https://chat.0data.app/c/events/5.rss" rel="self" type="application/rss+xml" /><item><title>${ item . ZDAEventName } </title><description><![CDATA[
181- <div class="discourse-post-event" data-start="${ item . ZDAEventStart . toJSON ( ) } " data-status="public" data-end="2021-08-03 14:00" data-allowed-groups="trust_level_0"></div>
182- ]]></description><link>https://chat.0data.app/t/zero-data-swap-2-files-portability-september-29-2021/37</link><source url="${ item . ZDAEventURL } .rss">Zero Data Swap #2: Files / Portability — September 29, 2021</source></item></channel></rss>` ;
183- } ;
184-
185- it ( 'parses data' , function ( ) {
186- const ZDAEventURL = Math . random ( ) . toString ( ) ;
187- const ZDAEventName = Math . random ( ) . toString ( ) ;
188- const ZDAEventStart = new Date ( ) ;
189-
190- deepEqual ( mod . _DataEventObjects ( mod . ZDAEventURLZeroData ( ) , uEvent ( {
191- ZDAEventURL,
192- ZDAEventName,
193- ZDAEventStart,
194- } ) ) , [ {
195- ZDAEventURL,
196- ZDAEventName,
197- ZDAEventStart,
198- } ] ) ;
199- } ) ;
200-
201- } ) ;
202-
203-
204-
205160} ) ;
206161
207162describe ( 'DataEvents' , function test_DataEvents ( ) {
0 commit comments