-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea07622
commit 72ba432
Showing
16 changed files
with
954 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ build: | |
test: | ||
npm test | ||
|
||
test-coverage: | ||
npx jest --coverage | ||
|
||
lint: | ||
npx eslint . | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
### Hexlet tests and linter status: | ||
[![Actions Status](https://github.com/mikhailmogilnikov/frontend-project-11/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/mikhailmogilnikov/frontend-project-11/actions) | ||
# RSS-агрегатор | ||
|
||
[![Actions Status](https://github.com/mikhailmogilnikov/frontend-project-11/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/mikhailmogilnikov/frontend-project-11/actions) | ||
[![Actions Status](https://github.com/mikhailmogilnikov/frontend-project-11/actions/workflows/nodejs.yml/badge.svg)](https://github.com/mikhailmogilnikov/frontend-project-11/actions) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/c31f2b96bb457a01afa5/maintainability)](https://codeclimate.com/github/mikhailmogilnikov/frontend-project-11/maintainability) | ||
[![Test Coverage](https://api.codeclimate.com/v1/badges/c31f2b96bb457a01afa5/test_coverage)](https://codeclimate.com/github/mikhailmogilnikov/frontend-project-11/test_coverage) | ||
|
||
## Setup | ||
|
||
```sh | ||
make install | ||
``` | ||
|
||
## Run | ||
|
||
```sh | ||
make develop | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<coverage generated="1704735863403" clover="3.2.0"> | ||
<project timestamp="1704735863403" name="All files"> | ||
<metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3" elements="9" coveredelements="9" complexity="0" loc="6" ncloc="6" packages="1" files="2" classes="2"/> | ||
<file name="Example.js" path="/Users/mikhailmogilnikov/dev/web/projects/hexlet/frontend-project-11/src/Example.js"> | ||
<metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/> | ||
<line num="5" count="1" type="stmt"/> | ||
<line num="9" count="1" type="stmt"/> | ||
<line num="10" count="1" type="stmt"/> | ||
</file> | ||
<file name="init.js" path="/Users/mikhailmogilnikov/dev/web/projects/hexlet/frontend-project-11/src/init.js"> | ||
<metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/> | ||
<line num="6" count="1" type="stmt"/> | ||
<line num="7" count="1" type="stmt"/> | ||
<line num="8" count="1" type="stmt"/> | ||
</file> | ||
</project> | ||
</coverage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{"/Users/mikhailmogilnikov/dev/web/projects/hexlet/frontend-project-11/src/Example.js": {"path":"/Users/mikhailmogilnikov/dev/web/projects/hexlet/frontend-project-11/src/Example.js","statementMap":{"0":{"start":{"line":5,"column":4},"end":{"line":5,"column":27}},"1":{"start":{"line":9,"column":4},"end":{"line":9,"column":47}},"2":{"start":{"line":10,"column":4},"end":{"line":10,"column":24}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":2},"end":{"line":4,"column":3}},"loc":{"start":{"line":4,"column":23},"end":{"line":6,"column":3}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":8,"column":2},"end":{"line":8,"column":3}},"loc":{"start":{"line":8,"column":9},"end":{"line":11,"column":3}},"line":8}},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{"0":1,"1":1},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"d6af0b4ea31b4539f89951449680c7852e3b986e"} | ||
,"/Users/mikhailmogilnikov/dev/web/projects/hexlet/frontend-project-11/src/init.js": {"path":"/Users/mikhailmogilnikov/dev/web/projects/hexlet/frontend-project-11/src/init.js","statementMap":{"0":{"start":{"line":6,"column":18},"end":{"line":6,"column":50}},"1":{"start":{"line":7,"column":14},"end":{"line":7,"column":34}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":5,"column":15},"end":{"line":5,"column":16}},"loc":{"start":{"line":5,"column":21},"end":{"line":9,"column":1}},"line":5}},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{"0":1},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"6895ef82878eae42a1e44d606b89cf65530c2cec"} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<title>Code coverage report for Example.js</title> | ||
<meta charset="utf-8" /> | ||
<link rel="stylesheet" href="prettify.css" /> | ||
<link rel="stylesheet" href="base.css" /> | ||
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<style type='text/css'> | ||
.coverage-summary .sorter { | ||
background-image: url(sort-arrow-sprite.png); | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class='wrapper'> | ||
<div class='pad1'> | ||
<h1><a href="index.html">All files</a> Example.js</h1> | ||
<div class='clearfix'> | ||
|
||
<div class='fl pad1y space-right2'> | ||
<span class="strong">100% </span> | ||
<span class="quiet">Statements</span> | ||
<span class='fraction'>3/3</span> | ||
</div> | ||
|
||
|
||
<div class='fl pad1y space-right2'> | ||
<span class="strong">100% </span> | ||
<span class="quiet">Branches</span> | ||
<span class='fraction'>0/0</span> | ||
</div> | ||
|
||
|
||
<div class='fl pad1y space-right2'> | ||
<span class="strong">100% </span> | ||
<span class="quiet">Functions</span> | ||
<span class='fraction'>2/2</span> | ||
</div> | ||
|
||
|
||
<div class='fl pad1y space-right2'> | ||
<span class="strong">100% </span> | ||
<span class="quiet">Lines</span> | ||
<span class='fraction'>3/3</span> | ||
</div> | ||
|
||
|
||
</div> | ||
<p class="quiet"> | ||
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block. | ||
</p> | ||
<template id="filterTemplate"> | ||
<div class="quiet"> | ||
Filter: | ||
<input oninput="onInput()" type="search" id="fileSearch"> | ||
</div> | ||
</template> | ||
</div> | ||
<div class='status-line high'></div> | ||
<pre><table class="coverage"> | ||
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a> | ||
<a name='L2'></a><a href='#L2'>2</a> | ||
<a name='L3'></a><a href='#L3'>3</a> | ||
<a name='L4'></a><a href='#L4'>4</a> | ||
<a name='L5'></a><a href='#L5'>5</a> | ||
<a name='L6'></a><a href='#L6'>6</a> | ||
<a name='L7'></a><a href='#L7'>7</a> | ||
<a name='L8'></a><a href='#L8'>8</a> | ||
<a name='L9'></a><a href='#L9'>9</a> | ||
<a name='L10'></a><a href='#L10'>10</a> | ||
<a name='L11'></a><a href='#L11'>11</a> | ||
<a name='L12'></a><a href='#L12'>12</a> | ||
<a name='L13'></a><a href='#L13'>13</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-yes">1x</span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-yes">1x</span> | ||
<span class="cline-any cline-yes">1x</span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">// @ts-check | ||
| ||
export default class Example { | ||
constructor(element) { | ||
this.element = element; | ||
} | ||
| ||
init() { | ||
this.element.textContent = 'hello, world!'; | ||
console.log('ehu!'); | ||
} | ||
} | ||
</pre></td></tr></table></pre> | ||
|
||
<div class='push'></div><!-- for sticky footer --> | ||
</div><!-- /wrapper --> | ||
<div class='footer quiet pad2 space-top1 center small'> | ||
Code coverage generated by | ||
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a> | ||
at 2024-01-08T17:44:23.400Z | ||
</div> | ||
<script src="prettify.js"></script> | ||
<script> | ||
window.onload = function () { | ||
prettyPrint(); | ||
}; | ||
</script> | ||
<script src="sorter.js"></script> | ||
<script src="block-navigation.js"></script> | ||
</body> | ||
</html> | ||
|
Oops, something went wrong.