File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,11 @@ describe('index.jsx integration', () => {
7070 const spy = jest . spyOn ( Actions , 'getUser' ) ;
7171
7272 beforeEach ( async ( ) => {
73- // console.log("TRYING TO SPY ON GETUSER");
74-
7573 act ( ( ) => {
7674 subject ( ) ;
7775 } ) ;
7876
79- // console.log("WAITING....");
8077 await waitFor ( ( ) => expect ( spy ) . toHaveBeenCalledTimes ( 1 ) ) ;
81- // console.log("SPY DONE");
8278 } ) ;
8379
8480 afterEach ( ( ) => {
@@ -176,22 +172,4 @@ describe('index.jsx integration', () => {
176172 } ) ;
177173 expect ( preview . getAttribute ( 'srcdoc' ) ) . toMatch ( / ( ^ | " ) \s * ( $ | " ) / ) ;
178174 } ) ;
179-
180- it ( 'clicking on a file in the sidebar changes the text content of the codemirror editor' , ( ) => {
181- const indexHTMLButton = screen . getByRole ( 'button' , {
182- name : 'index.html'
183- } ) ;
184-
185- // expect(screen.getByText("createCanvas")).toBeInTheDocument();
186- const codeeditor = screen . getByRole ( 'article' ) ;
187- // console.log(prettyDOM(codeeditor));
188- expect ( indexHTMLButton ) . toBeInTheDocument ( ) ;
189-
190- const startingeditorcode = codeeditor . textContent ;
191- console . log ( startingeditorcode ) ;
192- act ( ( ) => {
193- fireEvent . click ( indexHTMLButton ) ;
194- } ) ;
195- expect ( startingeditorcode ) . not . toBe ( codeeditor . textContent ) ;
196- } ) ;
197175} ) ;
Original file line number Diff line number Diff line change @@ -298,7 +298,6 @@ class Editor extends React.Component {
298298
299299 getContent ( ) {
300300 const content = this . _cm . getValue ( ) ;
301- console . log ( content ) ;
302301 const updatedFile = Object . assign ( { } , this . props . file , { content } ) ;
303302 return updatedFile ;
304303 }
You can’t perform that action at this time.
0 commit comments