gun
gun copied to clipboard
add test for content addressing
I think this is correct, but let me know!
But the key thing is that this needs to be tested on webkit browsers. Webkit powers all browsers on iOS (and Safari desktop), so it's a huge market.
@thrownness you can see that travis build is failing TypeError: Cannot read property 'get' of undefined at SEA.work.name (/home/travis/build/amark/gun/test/sea/sea.js:44:13) at Object.SEA.work.SEA.work (/home/travis/build/amark/gun/sea.js:278:22) 1) Content Addressing
var gun is undefined by default, you need to instantiate it. see other tests.
I'm now seeing Warning: reusing same fs store and options as 1st., but it appears that the test works nonetheless. It throws and then there's a checkmark in front of the test.
Are any of these tests able to be run in the browser? Or are these only for Node?
just node. not aware of browser tests maybe @amark can tell more. there should be a way to run these tests also on a browser
https://mochajs.org/#running-mocha-in-the-browser
There might already be an html file with this setup. It just needs to be run on Safari too
yaaay!
tests/mocha.html I check in browser before publishing, but be nice to automate across all browsers.
ut-oh, test is failing! I'll need to look into that? I haven't peeked at the code/test yet.
👏 for more tests tho! This is how progress happens, painfully detailed, but it is laying concrete foundation & building up layer by layer at a time until the world is changed forever because they take the bedrock to be granted. Making sure our stuff actually works at each step. :)
@thrownness this is the thing that is breaking iOS/webkit/safari right?