@featherds/pdf-viewer
Advanced tools
Comparing version 0.12.5 to 0.12.6
{ | ||
"name": "@featherds/pdf-viewer", | ||
"version": "0.12.5", | ||
"version": "0.12.6", | ||
"publishConfig": { | ||
@@ -12,8 +12,8 @@ "access": "public" | ||
"dependencies": { | ||
"@featherds/button": "^0.12.5", | ||
"@featherds/composables": "^0.12.5", | ||
"@featherds/dialog": "^0.12.5", | ||
"@featherds/icon": "^0.12.5", | ||
"@featherds/progress": "^0.12.5", | ||
"@featherds/styles": "^0.12.5", | ||
"@featherds/button": "^0.12.6", | ||
"@featherds/composables": "^0.12.6", | ||
"@featherds/dialog": "^0.12.6", | ||
"@featherds/icon": "^0.12.6", | ||
"@featherds/progress": "^0.12.6", | ||
"@featherds/styles": "^0.12.6", | ||
"vue": "^3.1.0-0" | ||
@@ -26,3 +26,3 @@ }, | ||
"types": "./src/index.d.ts", | ||
"gitHead": "902fb935f136f66098ff1f777f7ca1294854cd42" | ||
"gitHead": "efae40a88230bf71e4927f9e40604d095fb92d35" | ||
} |
import FeatherPdfViewer from "./FeatherPdfViewer.vue"; | ||
import { shallowMount } from "@vue/test-utils"; | ||
import { getCalls } from "@featherds/utils/test/calls"; | ||
import { vi, expect, describe, it, beforeEach } from "vitest"; | ||
const focusTrap = { | ||
@@ -26,6 +26,6 @@ template: "<div><slot /></div>", | ||
const xhrMock = { | ||
open: jest.fn(), | ||
send: jest.fn(), | ||
open: vi.fn(), | ||
send: vi.fn(), | ||
status: 200, | ||
onload: () => { } | ||
onload: () => {}, | ||
}; | ||
@@ -36,3 +36,6 @@ const xhrRequestMock = xhrMock as unknown as XMLHttpRequest; | ||
xhrMock.send.mockReset(); | ||
jest.spyOn(window, "XMLHttpRequest").mockImplementation(() => xhrRequestMock); | ||
vi.spyOn( | ||
window as unknown as { XMLHttpRequest: () => void }, | ||
"XMLHttpRequest" | ||
).mockImplementation(() => xhrRequestMock); | ||
}); | ||
@@ -39,0 +42,0 @@ it("should use document url when extension is pdf", () => { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69383
742
Updated@featherds/button@^0.12.6
Updated@featherds/dialog@^0.12.6
Updated@featherds/icon@^0.12.6
Updated@featherds/progress@^0.12.6
Updated@featherds/styles@^0.12.6