Permalink
Browse files

добавил code quality tools в package.json

  • Loading branch information...
1 parent bf7e398 commit 703f383431bb648a466dec0018ba5151ed44a210 @doochik doochik committed Oct 30, 2012
Showing with 4,317 additions and 1 deletion.
  1. +21 −0 .jshintrc
  2. +6 −1 package.json
  3. +79 −0 test/index.css
  4. +37 −0 test/index.html
  5. +4,142 −0 test/sinon-1.5.0.js
  6. +32 −0 test/spec/no.request.js
View
@@ -0,0 +1,21 @@
+{
+ "browser": true,
+ "devel": true,
+ "jquery": true,
+ "globals": {
+ "no": false
+ },
+
+ "bitwise": true,
+ "curly": true,
+ "indent": 4,
+ "latedef": true,
+ "sub": true,
+ "newcap": true,
+ "noarg": true,
+ "noempty": true,
+ "nonew": true,
+ "onevar": false,
+ "undef": true,
+ "unused": true
+}
View
@@ -15,7 +15,12 @@
"dependencies": {
"nommon": "*"
},
- "devDependencies": {},
+ "devDependencies": {
+ "expect.js": "*",
+ "jshint": "*",
+ "mocha": "*",
+ "sinon": "*"
+ },
"optionalDependencies": {},
"engines": {
"node": "*"
View
@@ -0,0 +1,79 @@
+body {
+ margin: 0;
+ padding: 0;
+ background-color: #EEE;
+ font-family: monaco, sans-serif;
+}
+
+#stats {
+ position: static;
+ background-color: #A6B779;
+ color: #EEE;
+}
+
+#stats li {
+ font-size: 14px;
+ padding-bottom: 11px;
+}
+
+#stats em {
+ font-weight: bold;
+ font-style: normal;
+ color: #EEE;
+}
+
+#mocha .test.pass::before {
+ content: '';
+ color: #5E7D00;
+}
+
+#mocha .test.fail {
+ color: #000;
+}
+#mocha .test.fail::before {
+ content: '';
+ color: #B03911;
+}
+#mocha .test pre {
+ border: none;
+ border-radius: 0;
+ -webkit-border-radius: 0;
+ box-shadow: 0 0 3px rgba(0, 0, 0, .3);
+ -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .3);
+ background-color: #FAFAFA;
+}
+#mocha .test pre.error {
+ color: #B03911;
+}
+
+#mocha .test.pass .duration {
+ border-radius: 0;
+ -webkit-border-radius: 0;
+}
+#mocha .test.pass.medium .duration {
+ background-color: hsla(38, 46%, 54%, .6);
+}
+#mocha .test.pass.slow .duration {
+ background-color: hsla(15, 82%, 38%, .6);
+}
+
+#mocha .test:hover h2::after {
+ content: '';
+}
+
+#stats a:hover,
+#mocha h1 a:hover {
+ text-decoration: none;
+ border-bottom: none;
+}
+
+#mocha h1,
+#mocha .suite .suite h1 {
+ margin-top: 10px;
+ font-size: 13px;
+ color: #333;
+ font-family: Helvetica, sans-serif;
+}
+#mocha h1 {
+ margin-top: 15px;
+}
View
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Noscript test</title>
+ <meta http-equiv="cache-control" content="max-age=0" />
+ <meta http-equiv="cache-control" content="no-cache" />
+ <meta http-equiv="expires" content="0" />
+ <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
+ <meta http-equiv="pragma" content="no-cache" />
+
+ <link rel="stylesheet" type="text/css" href="../node_modules/mocha/mocha.css">
+ <link rel="stylesheet" type="text/css" href="index.css">
+ <!--<script src="//yandex.st/jquery/1.8.2/jquery.min.js"></script>-->
+
+ <script type="text/javascript" src="../node_modules/mocha/mocha.js"></script>
+ <script type="text/javascript" src="../node_modules/expect.js/expect.js"></script>
+ <script type="text/javascript" src="sinon-1.5.0.js"></script>
+
+ <script type="text/javascript">mocha.setup('bdd')</script>
+
+ <!-- noscript (start) -->
+ <script src="../src/no.js"></script>
+ <script src="../src/no.model.js"></script>
+ <script src="../src/no.object.js"></script>
+ <script src="../src/no.request.js"></script>
+ <!-- noscript (end) -->
+
+ <!-- tests (start) -->
+ <script src="spec/no.request.js"></script>
+ <!-- tests (end) -->
+</head>
+<body>
+<div id="mocha"></div>
+<script type="text/javascript">window.onload = function() { mocha.run(); }</script>
+</body>
+</html>
Oops, something went wrong. Retry.

0 comments on commit 703f383

Please sign in to comment.