From a7175d04afcecf28b77e02886f9340f171bb3571 Mon Sep 17 00:00:00 2001 From: Colin Mitchell Date: Sat, 9 Mar 2024 09:43:24 -0500 Subject: [PATCH] Handle some platform issues --- test/fixtures/test-savers.zip | Bin 6611 -> 4665 bytes test/lib/package.js | 16 ++++++++++++++++ test/main/power.js | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/test/fixtures/test-savers.zip b/test/fixtures/test-savers.zip index cc37f87dddec0b725ff3bafee0cc9be7a5b852c4..50fe1187eb3aa8c25af42ffa47e6202459462939 100644 GIT binary patch delta 49 zcmca?yi;X@G4uK2Hxtc#K-6R(cDczf`1vL#iBFam;F&y=U25aIXf}}4W*_#qTmS(w B6bAqR delta 2015 zcmbVM%Wl&^6crmPRTXau2{spr4HEGycJmM$P^myF54A-ss)8o=bux53V`e4^W#eC< z%8JiGtl&3T@&l|`@d3=lZEYe)t%xE^PR_ZHbI-ls?*3?hYR|r3xPG+x;KHBT)oV9q zZ&uc3zb;=o8r+=SzOpv^ymITy@4buVpI_gs{9G;e0xt+#Uc2S>!0Yw>u{c-qY9M(IydW8Z z7VrpDArUsnl%InxktBzPH6>JoA;Lfi{V>m$Py@fpynrkg8jotwu|gOS^T>%Ffjc46 zO$AGg25y+S-Gk&qo(6s-Cz1blDBsHU$@?tKJo6cHch}Wf-s-ly9ls@>y-<%yyz}DY z!)T$z;zaQ%sA}92B(bvQ5>vH6Xu{hfH>m9YM~%gKifqcMh&981X04JI%cVKZ+OCvQ zhe~4xWpdN+D`lq<3r4y7Qi^vNYvm5+UTP)AORgB}e7wYwVHoTer#2tw3DLNt&Epy2 zWQY=I!f=;n*oU^~!GIBdP`>s&uX!wC7*@r`OeowgS7axah`g-3PA#gX3&W`5ngto> zPt)g!2_|(y9ba2gZh$+MbLSjjkt2U;z4e+FJQ35g@^q@YrU;1uo6T;m4OF@mrqo7S zmb|w5LrDgp=5j#b6`f8e@`Clny*M6z*sJX$J6?;FGVHtV*~3>db~9qE;W+kNdcmD< zl{3;AGu0Li*RK=ys)lWgb{Ex%X7f{{QEA9Tg3Y~lx;3&HzPXK5Q^G(ZLwii(5yl6n z+~S|R+v#~#<~eXv$mclSF1e?yGe|JfI#))b+9tG0e=8>&rzz!(43ra#tZ>WU-GoRp zLihNv+ndU9dQx)d=N_=P6_DYxs_1X6`2Qt#6Ez-YWIOC4`5z9ojkrSM)* zJETL@t))lQccREID!sXYQVSpxLXAKS@56{D2( { var testDest = path.resolve(workingDir, "sparks", "index.html"); assert(fs.existsSync(testDest)); @@ -157,6 +161,10 @@ describe("Package", function() { }); it("recovers from errors", function(done) { + if (process.platform == "darwin") { + this.skip(); + } + p.zipToSavers(dataPath). then(() => {}). catch( () => { @@ -165,6 +173,10 @@ describe("Package", function() { }); it("keeps files on failure", function(done) { + if (process.platform == "darwin") { + this.skip(); + } + helpers.addSaver(workingDir, "saver-one", "saver.json"); var testDest = path.resolve(workingDir, "saver-one", "saver.json"); @@ -178,6 +190,10 @@ describe("Package", function() { it("removes files that arent needed", function(done) { + if (process.platform == "darwin") { + this.skip(); + } + helpers.addSaver(workingDir, "saver-one", "saver.json"); var testDest = path.resolve(workingDir, "saver-one", "saver.json"); diff --git a/test/main/power.js b/test/main/power.js index b977dda..5eba886 100644 --- a/test/main/power.js +++ b/test/main/power.js @@ -24,7 +24,7 @@ describe("Power", function() { describe("unhandled platform", function() { it("works", async function() { - const power = new Power("beos"); + const power = new Power({platform: "beos"}); assert(await power.charging()); }); });