Passed
Push — develop ( 9e3bd7...6405a0 )
by Endre
03:46
created

ApplicationAction.openGithubWindow   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
import {IAdapter} from './View/Application';
2
3
export default class ApplicationAction {
4
  get adapter(): IAdapter {
5 1
    return {
6
      onGithubClick: this.openGithubWindow.bind(this)
7
    }
8
  }
9
10
  protected openGithubWindow(): void {
11 1
    window.open('https://github.com/enbock/Time-Tracker/', '_blank');
12
  }
13
}
14