@@ -11,7 +11,7 @@ import {
1111 decideArticleMedia ,
1212 decideReplacementMedia ,
1313 getActiveMediaAtom ,
14- getEditorialTestData ,
14+ getFrontEditorialTestData ,
1515 getMediaMetadata ,
1616} from './enhanceCards' ;
1717
@@ -535,7 +535,7 @@ describe('Enhance Cards', () => {
535535 } ) ;
536536 } ) ;
537537
538- describe ( 'getEditorialTestData ' , ( ) => {
538+ describe ( 'getFrontEditorialTestData ' , ( ) => {
539539 const cardWithNoEditorialTest = {
540540 properties : {
541541 isBreaking : false ,
@@ -669,7 +669,7 @@ describe('Enhance Cards', () => {
669669
670670 it ( 'returns undefined if no editorial test exists on the card, page is not in allowed fronts list, and user is not in a test bucket' , ( ) => {
671671 expect (
672- getEditorialTestData (
672+ getFrontEditorialTestData (
673673 cardWithNoEditorialTest ,
674674 { } ,
675675 true ,
@@ -680,7 +680,7 @@ describe('Enhance Cards', () => {
680680
681681 it ( 'returns undefined if editorial test exists and page is in allowed fronts list, but user is not in a test bucket' , ( ) => {
682682 expect (
683- getEditorialTestData (
683+ getFrontEditorialTestData (
684684 cardWithEditorialTest ,
685685 { } ,
686686 true ,
@@ -691,7 +691,7 @@ describe('Enhance Cards', () => {
691691
692692 it ( 'returns undefined if user is in a test bucket and page is in allowed fronts list, but editorial test does not exist' , ( ) => {
693693 expect (
694- getEditorialTestData (
694+ getFrontEditorialTestData (
695695 cardWithNoEditorialTest ,
696696 {
697697 'fronts-and-curation-editorial-test' : 'a' ,
@@ -704,7 +704,7 @@ describe('Enhance Cards', () => {
704704
705705 it ( 'returns undefined if editorial test exists and user is in a test bucket, but page is not in allowed fronts list' , ( ) => {
706706 expect (
707- getEditorialTestData (
707+ getFrontEditorialTestData (
708708 cardWithEditorialTest ,
709709 {
710710 'fronts-and-curation-editorial-test' : 'a' ,
@@ -717,7 +717,7 @@ describe('Enhance Cards', () => {
717717
718718 it ( 'returns undefined if editorial test exists, page is in allowed fronts list, user is in a variant bucket, but the feature switch is turned off ' , ( ) => {
719719 expect (
720- getEditorialTestData (
720+ getFrontEditorialTestData (
721721 cardWithEditorialTest ,
722722 {
723723 'fronts-and-curation-editorial-test' : 'a' ,
@@ -730,7 +730,7 @@ describe('Enhance Cards', () => {
730730
731731 it ( 'returns headline A & test uuid if editorial test exists, page is in allowed fronts list, and user is in bucket A' , ( ) => {
732732 expect (
733- getEditorialTestData (
733+ getFrontEditorialTestData (
734734 cardWithEditorialTest ,
735735 {
736736 'fronts-and-curation-editorial-test' : 'a' ,
@@ -743,7 +743,7 @@ describe('Enhance Cards', () => {
743743
744744 it ( 'returns headline B & test uuid if editorial test exists, page is in allowed fronts list, and user is in bucket B' , ( ) => {
745745 expect (
746- getEditorialTestData (
746+ getFrontEditorialTestData (
747747 cardWithEditorialTest ,
748748 {
749749 'fronts-and-curation-editorial-test' : 'b' ,
@@ -756,7 +756,7 @@ describe('Enhance Cards', () => {
756756
757757 it ( 'returns undefined if the bucket name does not match a variant meta id' , ( ) => {
758758 expect (
759- getEditorialTestData (
759+ getFrontEditorialTestData (
760760 cardWithEditorialTest ,
761761 {
762762 'fronts-and-curation-editorial-test' : 'c' ,
@@ -769,7 +769,7 @@ describe('Enhance Cards', () => {
769769
770770 it ( 'returns undefined if the variant headline is undefined' , ( ) => {
771771 expect (
772- getEditorialTestData (
772+ getFrontEditorialTestData (
773773 cardWithEditorialTestWithUndefinedVariantMeta ,
774774 {
775775 'fronts-and-curation-editorial-test' : 'a' ,
@@ -782,7 +782,7 @@ describe('Enhance Cards', () => {
782782
783783 it ( 'returns undefined if an editorial test has expired' , ( ) => {
784784 expect (
785- getEditorialTestData (
785+ getFrontEditorialTestData (
786786 cardWithExpiredEditorialTest ,
787787 {
788788 'fronts-and-curation-editorial-test' : 'a' ,
@@ -795,7 +795,7 @@ describe('Enhance Cards', () => {
795795
796796 it ( 'returns undefined if an editorial test has been manually ended' , ( ) => {
797797 expect (
798- getEditorialTestData (
798+ getFrontEditorialTestData (
799799 cardWithManuallyEndedEditorialTest ,
800800 {
801801 'fronts-and-curation-editorial-test' : 'a' ,
@@ -808,7 +808,7 @@ describe('Enhance Cards', () => {
808808
809809 it ( 'returns the variant headline & test uuid if an editorial test is present on a sublink' , ( ) => {
810810 expect (
811- getEditorialTestData (
811+ getFrontEditorialTestData (
812812 cardWithSublinkWithEditorialTest
813813 . supportingContent [ 0 ] as FESupportingContent ,
814814 {
@@ -822,7 +822,7 @@ describe('Enhance Cards', () => {
822822
823823 it ( 'returns undefined for a sublink if an editorial test is expired on a sublink' , ( ) => {
824824 expect (
825- getEditorialTestData (
825+ getFrontEditorialTestData (
826826 cardWithSublinkWithExpiredEditorialTest
827827 . supportingContent [ 0 ] as FESupportingContent ,
828828 {
0 commit comments