mirror of
https://github.com/kemko/nomad.git
synced 2026-01-10 20:35:42 +03:00
Use a data-uri instead of an image for the image-file-test
This commit is contained in:
@@ -14,12 +14,7 @@ module('Integration | Component | image file', function(hooks) {
|
||||
`;
|
||||
|
||||
const commonProperties = {
|
||||
// HACK!
|
||||
// Without mocking the entire image element, this component will make a
|
||||
// real request for a real image. It's unfortuante to couple this test to the
|
||||
// favicon, but it's an unlikely asset to be removed, and it's better than
|
||||
// attempting to mock this.
|
||||
src: '/ui/favicon.png',
|
||||
src: 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
|
||||
alt: 'This is the alt text',
|
||||
size: 123456,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user