Sfoglia il codice sorgente

Added missing test.

Maciej Bukowski 7 anni fa
parent
commit
e2d1d3968e
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      packages/ckeditor5-autosave/tests/autosave.js

+ 4 - 0
packages/ckeditor5-autosave/tests/autosave.js

@@ -67,6 +67,10 @@ describe( 'Autosave', () => {
 				sandbox.clock.tick( 2000 );
 				sandbox.clock.tick( 2000 );
 			} ).to.not.throw();
 			} ).to.not.throw();
 		} );
 		} );
+
+		it( 'should start with the `synchronized` state', () => {
+			expect( autosave.state ).to.equal( 'synchronized' );
+		} );
 	} );
 	} );
 
 
 	describe( 'config.autosave.save', () => {
 	describe( 'config.autosave.save', () => {