mirror of
https://github.com/janishutz/color-thief.git
synced 2025-11-25 22:04:25 +00:00
test: Add test for CORS
This commit is contained in:
9
cypress/integration/cors_spec.js
Normal file
9
cypress/integration/cors_spec.js
Normal file
@@ -0,0 +1,9 @@
|
||||
describe('cross domain images with liberal CORS policy', function() {
|
||||
it('load', function() {
|
||||
cy.visit('http://localhost:8080/cypress/test-pages/cors.html');
|
||||
cy.get('#result').should(($el) => {
|
||||
const count = $el.text().split(',').length
|
||||
expect(count).to.equal(3);
|
||||
});
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user