Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Unified Diff: test/expression_test.ts

Issue 2416003003: Update package name, update and lock clang-format and tslint versions, and format all source files … (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« package.json ('K') | « test/e2e/lib.ts ('k') | test/main_test.ts » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/expression_test.ts
diff --git a/test/expression_test.ts b/test/expression_test.ts
index 64302ff3d91fe79f821c70101ed8dd253aa7dda2..bab54e0c25115f2f6de5e0d155a09079a0603aed 100644
--- a/test/expression_test.ts
+++ b/test/expression_test.ts
@@ -49,7 +49,9 @@ describe('ignore expressions', () => {
'1 <= 2',
]);
});
- it('compares identity', () => { expectEmptyTranslates(['1 === 2', '1 !== 2']); });
+ it('compares identity', () => {
+ expectEmptyTranslates(['1 === 2', '1 !== 2']);
+ });
it('bit fiddles', () => {
expectEmptyTranslates(
['x & 2', '1 & 2', '1 | 2', '1 ^ 2', '~1', '1 << 2', '1 >> 2', '0x1 & 0x2', '1 >>> 2']);
@@ -73,13 +75,27 @@ external get x;
@JS()
external set x(v);`);
});
- it('translates "in"', () => { expectTranslate('x in y').to.equal(''); });
- it('translates "instanceof"', () => { expectTranslate('1 instanceof Foo').to.equal(''); });
- it('translates "this"', () => { expectTranslate('this.x').to.equal(''); });
- it('translates "delete"', () => { expectTranslate('delete x[y];').to.equal(''); });
- it('translates "typeof"', () => { expectTranslate('typeof x;').to.equal(''); });
- it('translates "void"', () => { expectTranslate('void x;').to.equal(''); });
- it('translates parens', () => { expectTranslate('(1)').to.equal(''); });
+ it('translates "in"', () => {
+ expectTranslate('x in y').to.equal('');
+ });
+ it('translates "instanceof"', () => {
+ expectTranslate('1 instanceof Foo').to.equal('');
+ });
+ it('translates "this"', () => {
+ expectTranslate('this.x').to.equal('');
+ });
+ it('translates "delete"', () => {
+ expectTranslate('delete x[y];').to.equal('');
+ });
+ it('translates "typeof"', () => {
+ expectTranslate('typeof x;').to.equal('');
+ });
+ it('translates "void"', () => {
+ expectTranslate('void x;').to.equal('');
+ });
+ it('translates parens', () => {
+ expectTranslate('(1)').to.equal('');
+ });
it('translates property paths', () => {
expectTranslate('foo.bar;').to.equal('');
« package.json ('K') | « test/e2e/lib.ts ('k') | test/main_test.ts » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698