Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f80b555a
authored
Apr 01, 2018
by
Aino Leppänen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed test component
1 parent
35b6973e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
66 deletions
code/moya-angular/src/app/test/test.component.html
code/moya-angular/src/app/test/test.component.scss
code/moya-angular/src/app/test/test.component.spec.ts
code/moya-angular/src/app/test/test.component.ts
code/moya-angular/src/app/test/test.component.html
deleted
100644 → 0
View file @
35b6973
<span
i18n
>
This is testfile
</span>
<br
/>
<br
/>
<br
/>
<h1
i18n
>
Counter value
</h1>
{{counter}}
<p
i18n
>
{counter, plural, =0 {not pressed} =1 {pressed once} other {pressed many times}}
</p>
<button
(
click
)="
addOne
()"
i18n
>
ADD ONE
</button>
<span
i18n
>
This is testfile
</span>
code/moya-angular/src/app/test/test.component.scss
deleted
100644 → 0
View file @
35b6973
File mode changed
code/moya-angular/src/app/test/test.component.spec.ts
deleted
100644 → 0
View file @
35b6973
/* tslint:disable:no-unused-variable */
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
By
}
from
'@angular/platform-browser'
;
import
{
DebugElement
}
from
'@angular/core'
;
import
{
TestComponent
}
from
'./test.component'
;
describe
(
'TestComponent'
,
()
=>
{
let
component
:
TestComponent
;
let
fixture
:
ComponentFixture
<
TestComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
TestComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
TestComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
code/moya-angular/src/app/test/test.component.ts
deleted
100644 → 0
View file @
35b6973
import
{
Component
,
OnInit
,
Input
}
from
'@angular/core'
;
@
Component
({
selector
:
'moya-test'
,
templateUrl
:
'./test.component.html'
,
styleUrls
:
[
'./test.component.scss'
]
})
export
class
TestComponent
implements
OnInit
{
@
Input
()
counter
:
number
;
constructor
()
{
this
.
counter
=
0
;
}
ngOnInit
()
{
}
addOne
()
{
this
.
counter
++
;
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment