|
|
@@ -1,7 +1,6 @@
|
|
|
-import { describe, test, it, expect, afterEach, vi } from 'vitest'
|
|
|
+import { describe, test, it, expect } from 'vitest'
|
|
|
import {AnyJson, ApiResponse, HydraMetadata} from "~/types/data";
|
|
|
-import HydraDenormalizer from "~/services/data/serializer/denormalizer/hydraDenormalizer";
|
|
|
-import UrlUtils from "~/services/utils/urlUtils";
|
|
|
+import HydraDenormalizer from "~/services/data/normalizer/hydraDenormalizer";
|
|
|
import {METADATA_TYPE} from "~/types/enum/data";
|
|
|
|
|
|
class TestableHydraDenormalizer extends HydraDenormalizer {
|
|
|
@@ -10,8 +9,6 @@ class TestableHydraDenormalizer extends HydraDenormalizer {
|
|
|
public static getMetadata(data: AnyJson): HydraMetadata { return super.getMetadata(data) }
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
describe('denormalize', () => {
|
|
|
|
|
|
test('should parse a API Item response and return a JSON Object', () => {
|