mirror of
https://github.com/janishutz/color-thief.git
synced 2025-11-25 05:44:24 +00:00
build: resolve Quantize dep issue, upgrade Cypress
This commit is contained in:
@@ -8,8 +8,8 @@ function rgbCount(text) {
|
||||
return vals.length / 3
|
||||
}
|
||||
|
||||
describe('getColor()', function() {
|
||||
before(function() {
|
||||
describe('getColor()', { testIsolation: false }, function() {
|
||||
before(function() {
|
||||
cy.visit('http://localhost:8080/cypress/test-pages/index.html');
|
||||
})
|
||||
|
||||
@@ -18,7 +18,7 @@ describe('getColor()', function() {
|
||||
const count = rgbCount($el.text())
|
||||
expect(count).to.equal(1);
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
it('returns valid color from red image', function() {
|
||||
cy.get('[data-image="red.png"] .output-color').should(($el) => {
|
||||
@@ -67,4 +67,4 @@ describe('getPalette()', function() {
|
||||
|
||||
let testCounts = [2, 3, 5, 7, 10, 20];
|
||||
testCounts.forEach((count) => testPaletteCount(count))
|
||||
})
|
||||
})
|
||||
BIN
cypress/videos/api.cy.js.mp4
Normal file
BIN
cypress/videos/api.cy.js.mp4
Normal file
Binary file not shown.
BIN
cypress/videos/cors.cy.js.mp4
Normal file
BIN
cypress/videos/cors.cy.js.mp4
Normal file
Binary file not shown.
BIN
cypress/videos/module.cy.js.mp4
Normal file
BIN
cypress/videos/module.cy.js.mp4
Normal file
Binary file not shown.
Reference in New Issue
Block a user