fix lint
Change-Id: I4202b557844e8641bddcf821693c7109b3881bdf
This commit is contained in:
		@@ -55,14 +55,14 @@ limitations under the License.
 | 
			
		||||
          [{text: 'Anonymous', bold: true}, {text: ''}]);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
   test('test for account without a name but using config', () => {
 | 
			
		||||
    test('test for account without a name but using config', () => {
 | 
			
		||||
      element._anonymousName = 'WikiGerrit';
 | 
			
		||||
      element.account = {id: '0001'};
 | 
			
		||||
      assert.deepEqual(element.topContent,
 | 
			
		||||
          [{text: 'WikiGerrit', bold: true}, {text: ''}]);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
   test('test for account name as an email', () => {
 | 
			
		||||
    test('test for account name as an email', () => {
 | 
			
		||||
      element._anonymousName = 'WikiGerrit';
 | 
			
		||||
      element.account = {email: 'john@doe.com'};
 | 
			
		||||
      assert.deepEqual(element.topContent,
 | 
			
		||||
 
 | 
			
		||||
@@ -197,7 +197,7 @@ limitations under the License.
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    test('getCurrentText', () => {
 | 
			
		||||
      assert.equal(element.getCurrentText(), "test value 1");
 | 
			
		||||
      assert.equal(element.getCurrentText(), 'test value 1');
 | 
			
		||||
    });
 | 
			
		||||
  });
 | 
			
		||||
</script>
 | 
			
		||||
 
 | 
			
		||||
@@ -82,15 +82,15 @@ limitations under the License.
 | 
			
		||||
 | 
			
		||||
    test('emoji selector opens when a colon is typed & the textarea has focus',
 | 
			
		||||
        () => {
 | 
			
		||||
      MockInteractions.focus(element.$.textarea);
 | 
			
		||||
      flushAsynchronousOperations();
 | 
			
		||||
      element.text = ':';
 | 
			
		||||
      element.text = ':t';
 | 
			
		||||
      assert.isTrue(!element.$.emojiSuggestions.hidden);
 | 
			
		||||
      assert.equal(element._colonIndex, 0);
 | 
			
		||||
      assert.isFalse(element._hideAutocomplete);
 | 
			
		||||
      assert.equal(element._currentSearchString, 't');
 | 
			
		||||
    });
 | 
			
		||||
          MockInteractions.focus(element.$.textarea);
 | 
			
		||||
          flushAsynchronousOperations();
 | 
			
		||||
          element.text = ':';
 | 
			
		||||
          element.text = ':t';
 | 
			
		||||
          assert.isTrue(!element.$.emojiSuggestions.hidden);
 | 
			
		||||
          assert.equal(element._colonIndex, 0);
 | 
			
		||||
          assert.isFalse(element._hideAutocomplete);
 | 
			
		||||
          assert.equal(element._currentSearchString, 't');
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
    test('emoji selector closes when text changes before the colon', () => {
 | 
			
		||||
      const resetStub = sandbox.stub(element, '_resetEmojiDropdown');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user