From 589b255d4500012923c39c9ff2e29e36ef1e4ac9 Mon Sep 17 00:00:00 2001 From: gras Date: Mon, 5 Feb 2024 23:58:34 +0100 Subject: [PATCH] fixed tests --- test/backend/assets/Chars.jpg | Bin 110375 -> 111432 bytes test/backend/assets/Chars.json | 4 ++-- .../png_with_keyword_and_dates.png_original | Bin 4812 -> 0 bytes .../model/threading/MetaDataLoader.spec.ts | 6 ------ 4 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 test/backend/assets/png_with_keyword_and_dates.png_original diff --git a/test/backend/assets/Chars.jpg b/test/backend/assets/Chars.jpg index 447f322bbe2cb405509f04873d9b9501ffebfc02..a20bc3cfe23d66a76349feda8b56871e992acad2 100644 GIT binary patch delta 3309 zcmeHJO>7%Q6rOebS35MZ)Jy$scg%!3fcN&|nIne-K0O zhn@*rk7nG^ftO$ac=*Zlj?8^~_e)~$9W?eSdeOtp<3BKM3n?*`mPJWkka$s)#gr^A zf?J(;xzMeLr_Jc$s{yGfw0HGIYBWVe;Khl*wN~KX*Pi$oe4N9P&UE0qAYv zJom!uo&<^#$Lv|d?t2L@h!4*tBw?=b3xMC@%kvfpFw7QU9(k^Uv&2pq&Hebn*Ia`0 zocjeHglFJio>$i6YT4M*G)ooYd`oWC8rGGSc)q4qG+D;k+BA$RFQt;%<#;Zn zG|Ss^adn+<)v9P3>aE0Kdt}as#zH)NFFeh~;XmFNPsc;NjmbBxQW}|k*=TAA{4)jf zJWP9+ya=Vhj&}-P_s*UQ@rr=$uWDwgsW&X$sP|eub=c}!%OXZ+pcooUAuo_YXGJt7 zZ)i=^sORe>AUw*G5H6_|(&6EqP{xPVJp3s%*Oej!O5CxrPz=uuckyJ`#li;i?1%B^ z#@(u79x4AE7a~1MtwOX3|160Bz7aY5X1u7G#%{Bu5f!f#Hi~(&E2i{wUR|>>1DmQelmxu zMiF|Z4{^d(DjNFqkQ)c#*hwr3Qc@IXaU^_+5ws56^v#p@ns0%$4}59T{^6S=ZPb5} zv;}{1c-=<3^;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AplDPL73-V=wK|M4=)U&H^aJX5{~F_(;v$%<_OQE-%?oqk1(zHB zF3`h8dNUBAZv@J7PT$hQe&5VpvHaeePd~=*?z|lj{4P21Ou@|3Br>*Ew_sKW9qAuu S3H~uCU%MT-b31}Ry74!{3D&{@ diff --git a/test/backend/assets/Chars.json b/test/backend/assets/Chars.json index 5c33b466..281eb7c9 100644 --- a/test/backend/assets/Chars.json +++ b/test/backend/assets/Chars.json @@ -3,8 +3,8 @@ "width": 1920, "height": 1080 }, - "creationDate": 1706655727004, - "fileSize": 110375, + "creationDate": 1706659327000, + "fileSize": 111432, "positionData": { "GPSData": { "longitude": 14.162922, diff --git a/test/backend/assets/png_with_keyword_and_dates.png_original b/test/backend/assets/png_with_keyword_and_dates.png_original deleted file mode 100644 index 513fddb21a2e8a2a32768ca9a3df15fa00f9795a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4812 zcmcgv3s4i+8eRmEM-de(gNm-9_EIp(Zr<4@QXoL0h9DrKedv;GlGP*|cNY@0)oMkH zPYNwpEo!OM(T-^BZEv+!tI{e8BlSV8y;MZ2t=iT{b#Pj(_iSE*VyDy2y*smybI$)d z-~XTg|F<$PHzy`)coYOdF*>a#AH0WicSJaNZk;gc7z9N(lZC}>v3?R}r0fFRM3oQ% zx7`WWAxM?xcH+j_1PhlC7Sf^SUEA{+4<=1&-c+d`(K|Ba6|7kqY?g-ro-6{0>kfZ6vW~2LNv5^)lOH;sTE@XP*Y3#Av zUS=9`J3-@o8h7y-f@Q(ZIkf!Dz{7eyrlE|b9E>`Rng?bCCenmuYNV({j$|suVgyCA zBub4YD=S@&ilx#_u~Mq^>h`hg91M#)j6{H)1ng#$)T|IGWqgrBhVacY3Bp&%WhH!* zLSdF7X0gPC6Fo#2XcFWJ-1c`Y!7>4gEJYVmlugac!$}7#$jvH*%ftey07U}YFugwx zG&oDBc_KuF@DU{+6&IosOoCvDJQWdPh>xBNT`UVciU^u>u9}C4M5tF37p54n8{md> zM_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`X7Q9uU0n+|v<}|h*!afX$|akq&V9$1j2t$swWX!thq@Cd@>!Z5GW`6>lX10g zy@k76AA8^r@-AGyy!FecBqMLET(*39#nZ=6om#BZ>7F{>-j3(x4LZ`;*ckQOKkhm= zY}k-dbKLoPb=&gL*x1;LtVLt%4jvk^Y8&$9x8Ei{`|Pt{><|qcII#I-vJ8VE7Qpb_)T!~4^!hJ$K;7Nlg=W}?u_^~0()i5w^Y}(qLJ9kbn<{Au})~`>zJ>6hf?coW8 z!X!q!vi0UO+upY-&a107Y*=;d*s7aA9MR31UNmSXj)&~syLbQ5QAb-^wjRAxf9KSi zwQK96Vq#h$&QYWs(X{SRd>a`-MwbhrX=9D^EYmw zA5cS|>`$?T~*EYAcEv>H~GqY(ZIFPSOg_@k4lk%lYtFM0Akv4uj%;WU~k(X@xH07g=Yq#Tb zb91-c+}7AA&G`IGXJ<~)m0RTfd%u0`nf3jG#8(df?D}xb=(LR|7k$6duzL4y<%#zU(4y { const expected = require(path.join(__dirname, '/../../../assets/Chars_exiftool.json')); expect(Utils.clone(data)).to.be.deep.equal(expected); }); - it('should load png with keyword and dates', async () => { - const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/png_with_keyword_and_dates.png')); - const expected = require(path.join(__dirname, '/../../../assets/png_with_keyword_and_dates.json')); - expect(Utils.clone(data)).to.be.deep.equal(expected); - }); - describe('should load jpg with proper height and orientation', () => { it('jpg 1', async () => {