@@ -20,7 +20,7 @@ describe("withFilter", () => {
2020
2121 it ( "should filter out tags based on writeTags" , async ( ) => {
2222 const tagCache = withFilter ( {
23- originalTagCache : mockedTagCache ,
23+ tagCache : mockedTagCache ,
2424 filterFn,
2525 } ) ;
2626
@@ -32,7 +32,7 @@ describe("withFilter", () => {
3232
3333 it ( "should not call writeTags if no tags are valid" , async ( ) => {
3434 const tagCache = withFilter ( {
35- originalTagCache : mockedTagCache ,
35+ tagCache : mockedTagCache ,
3636 filterFn,
3737 } ) ;
3838 const tags = [ "invalid_tag" ] ;
@@ -42,7 +42,7 @@ describe("withFilter", () => {
4242
4343 it ( "should filter out tags based on hasBeenRevalidated" , async ( ) => {
4444 const tagCache = withFilter ( {
45- originalTagCache : mockedTagCache ,
45+ tagCache : mockedTagCache ,
4646 filterFn,
4747 } ) ;
4848
@@ -55,7 +55,7 @@ describe("withFilter", () => {
5555
5656 it ( "should not call hasBeenRevalidated if no tags are valid" , async ( ) => {
5757 const tagCache = withFilter ( {
58- originalTagCache : mockedTagCache ,
58+ tagCache : mockedTagCache ,
5959 filterFn,
6060 } ) ;
6161 const tags = [ "invalid_tag" ] ;
@@ -66,7 +66,7 @@ describe("withFilter", () => {
6666
6767 it ( "should filter out tags based on getPathsByTags" , async ( ) => {
6868 const tagCache = withFilter ( {
69- originalTagCache : mockedTagCache ,
69+ tagCache : mockedTagCache ,
7070 filterFn,
7171 } ) ;
7272
@@ -78,7 +78,7 @@ describe("withFilter", () => {
7878
7979 it ( "should not call getPathsByTags if no tags are valid" , async ( ) => {
8080 const tagCache = withFilter ( {
81- originalTagCache : mockedTagCache ,
81+ tagCache : mockedTagCache ,
8282 filterFn,
8383 } ) ;
8484 const tags = [ "invalid_tag" ] ;
@@ -88,7 +88,7 @@ describe("withFilter", () => {
8888
8989 it ( "should return the correct name" , ( ) => {
9090 const tagCache = withFilter ( {
91- originalTagCache : mockedTagCache ,
91+ tagCache : mockedTagCache ,
9292 filterFn,
9393 } ) ;
9494
@@ -97,7 +97,7 @@ describe("withFilter", () => {
9797
9898 it ( "should not create a function if getPathsByTags is not defined" , async ( ) => {
9999 const tagCache = withFilter ( {
100- originalTagCache : {
100+ tagCache : {
101101 ...mockedTagCache ,
102102 getPathsByTags : undefined ,
103103 } ,
@@ -107,9 +107,9 @@ describe("withFilter", () => {
107107 expect ( tagCache . getPathsByTags ) . toBeUndefined ( ) ;
108108 } ) ;
109109
110- it ( "should properly filter soft tags" , ( ) => {
110+ it ( "should filter soft tags" , ( ) => {
111111 const tagCache = withFilter ( {
112- originalTagCache : mockedTagCache ,
112+ tagCache : mockedTagCache ,
113113 filterFn : softTagFilter ,
114114 } ) ;
115115
0 commit comments