@@ -15,12 +15,12 @@ describe("loadSourceText", async () => {
1515 await dispatch ( actions . loadSourceText ( I . Map ( { id : "foo1" } ) ) ) ;
1616 const fooSource = selectors . getSource ( getState ( ) , "foo1" ) ;
1717
18- expect ( fooSource . get ( " text" ) . indexOf ( "return foo1" ) ) . not . toBe ( - 1 ) ;
18+ expect ( fooSource . text . indexOf ( "return foo1" ) ) . not . toBe ( - 1 ) ;
1919
2020 await dispatch ( actions . loadSourceText ( I . Map ( { id : "foo2" } ) ) ) ;
2121 const foo2Source = selectors . getSource ( getState ( ) , "foo2" ) ;
2222
23- expect ( foo2Source . get ( " text" ) . indexOf ( "return foo2" ) ) . not . toBe ( - 1 ) ;
23+ expect ( foo2Source . text . indexOf ( "return foo2" ) ) . not . toBe ( - 1 ) ;
2424 } ) ;
2525
2626 it ( "loads two sources w/ one request" , async ( ) => {
@@ -47,7 +47,7 @@ describe("loadSourceText", async () => {
4747 resolve ( { source : "yay" , contentType : "text/javascript" } ) ;
4848 await loading ;
4949 expect ( count ) . toEqual ( 1 ) ;
50- expect ( selectors . getSource ( getState ( ) , id ) . get ( " text" ) ) . toEqual ( "yay" ) ;
50+ expect ( selectors . getSource ( getState ( ) , id ) . text ) . toEqual ( "yay" ) ;
5151 } ) ;
5252
5353 it ( "doesn't re-load loaded sources" , async ( ) => {
@@ -72,7 +72,7 @@ describe("loadSourceText", async () => {
7272 source = selectors . getSource ( getState ( ) , id ) ;
7373 await dispatch ( actions . loadSourceText ( source ) ) ;
7474 expect ( count ) . toEqual ( 1 ) ;
75- expect ( selectors . getSource ( getState ( ) , id ) . get ( " text" ) ) . toEqual ( "yay" ) ;
75+ expect ( selectors . getSource ( getState ( ) , id ) . text ) . toEqual ( "yay" ) ;
7676 } ) ;
7777
7878 it ( "should cache subsequent source text loads" , async ( ) => {
0 commit comments