solid-contrib / web-access-control-tests

Tests if a Solid server implements web access control correctly
MIT License
2 stars 5 forks source link

Test WAC-Allow header #8

Closed michielbdejong closed 3 years ago

michielbdejong commented 3 years ago

+import fetch from 'node-fetch';

michielbdejong commented 3 years ago

This does pass:

it(`Shows the correct WAC-Allow header on Alice's public folder`, async () => {
    const result = await solidLogicBob.fetch(`https://server/public/`);
    expect(result.headers.get('WAC-Allow')).toEqual('user="read",public="read"');
});
edwardsph commented 3 years ago

I'm not sure I got the process right for offering a PR on top of a request to review a PR - please let me know if there was a better way to do this.

michielbdejong commented 3 years ago

Merged your PR into mine, if you approve this one, then i will merge it.