(key, type)
| 63 | } |
| 64 | |
| 65 | function createMockFile (key, type) |
| 66 | { |
| 67 | return { |
| 68 | key: key || 'testKey', |
| 69 | type: type || 'image', |
| 70 | state: CONST.FILE_PENDING, |
| 71 | crossOrigin: null, |
| 72 | hasCacheConflict: function () { return false; }, |
| 73 | load: vi.fn(), |
| 74 | onProcess: vi.fn(), |
| 75 | addToCache: vi.fn(), |
| 76 | pendingDestroy: vi.fn(), |
| 77 | destroy: vi.fn() |
| 78 | }; |
| 79 | } |
| 80 | |
| 81 | describe('Phaser.Loader.LoaderPlugin', function () |
| 82 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…