(data, type)
| 1852 | return describe("when file is SVG", () => |
| 1853 | it("should use the SVG image itself", function (done) { |
| 1854 | let createBlob = function (data, type) { |
| 1855 | try { |
| 1856 | return new Blob([data], { type }); |
| 1857 | } catch (e) { |
| 1858 | let BlobBuilder = |
| 1859 | window.BlobBuilder || |
| 1860 | window.WebKitBlobBuilder || |
| 1861 | window.MozBlobBuilder || |
| 1862 | window.MSBlobBuilder; |
| 1863 | let builder = new BlobBuilder(); |
| 1864 | builder.append(data.buffer || data); |
| 1865 | return builder.getBlob(type); |
| 1866 | } |
| 1867 | }; |
| 1868 | |
| 1869 | let blob = createBlob("foo", "image/svg+xml"); |
| 1870 |
no outgoing calls
no test coverage detected
searching dependent graphs…