Skip to content

Commit 912eb18

Browse files
committedSep 6, 2018
~ 单元测试
1 parent 95ac401 commit 912eb18

File tree

3 files changed

+101
-1
lines changed

3 files changed

+101
-1
lines changed
 

Diff for: ‎karma.conf.js

+5
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ module.exports = function (config) {
5858
pattern: './src/**',
5959
included: false
6060
},
61+
{
62+
// 加载 src 下的原始文件,但不直接引入,使用模块加载器引入
63+
pattern: './prismjs/**',
64+
included: false
65+
},
6166
{
6267
// 加载 node_modules 下的原始文件,但不直接引入,使用模块加载器引入
6368
pattern: './node_modules/blear.*/package.json',

Diff for: ‎src/themes/light.css

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
/**
2+
* prism.js default theme for JavaScript, CSS and HTML
3+
* Based on dabblet (http://dabblet.com)
4+
* @author Lea Verou
5+
*/
6+
.prism {
7+
/* Code blocks */
8+
/* Inline code */ }
9+
.prism,
10+
.prism code {
11+
color: black;
12+
text-shadow: 0 1px white;
13+
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
14+
text-align: left;
15+
white-space: pre;
16+
word-spacing: normal;
17+
word-break: normal;
18+
word-wrap: normal;
19+
line-height: 1.5;
20+
-moz-tab-size: 4;
21+
-o-tab-size: 4;
22+
tab-size: 4;
23+
-webkit-hyphens: none;
24+
-moz-hyphens: none;
25+
-ms-hyphens: none;
26+
hyphens: none;
27+
background: #f5f2f0; }
28+
.prism {
29+
padding: 1em;
30+
margin: .5em 0;
31+
overflow: auto; }
32+
.prism code {
33+
padding: .1em;
34+
border-radius: .3em;
35+
white-space: pre; }
36+
.prism::-moz-selection,
37+
.prism code::-moz-selection {
38+
text-shadow: none;
39+
background: #b3d4fc; }
40+
.prism::selection,
41+
.prism code::selection {
42+
text-shadow: none;
43+
background: #b3d4fc; }
44+
@media print {
45+
.prism,
46+
.prism code {
47+
text-shadow: none; } }
48+
.prism .token.comment,
49+
.prism .token.prolog,
50+
.prism .token.doctype,
51+
.prism .token.cdata {
52+
color: slategray; }
53+
.prism .token.punctuation {
54+
color: #999; }
55+
.prism .namespace {
56+
opacity: .7; }
57+
.prism .token.property,
58+
.prism .token.tag,
59+
.prism .token.boolean,
60+
.prism .token.number,
61+
.prism .token.constant,
62+
.prism .token.symbol,
63+
.prism .token.deleted {
64+
color: #905; }
65+
.prism .token.selector,
66+
.prism .token.attr-name,
67+
.prism .token.string,
68+
.prism .token.char,
69+
.prism .token.builtin,
70+
.prism .token.inserted {
71+
color: #690; }
72+
.prism .token.operator,
73+
.prism .token.entity,
74+
.prism .token.url,
75+
.prism .language-css .token.string,
76+
.prism .style .token.string {
77+
color: #9a6e3a;
78+
background: rgba(255, 255, 255, 0.5); }
79+
.prism .token.atrule,
80+
.prism .token.attr-value,
81+
.prism .token.keyword {
82+
color: #07a; }
83+
.prism .token.function,
84+
.prism .token.class-name {
85+
color: #DD4A68; }
86+
.prism .token.regex,
87+
.prism .token.important,
88+
.prism .token.variable {
89+
color: #e90; }
90+
.prism .token.important,
91+
.prism .token.bold {
92+
font-weight: bold; }
93+
.prism .token.italic {
94+
font-style: italic; }
95+
.prism .token.entity {
96+
cursor: help; }

Diff for: ‎test/test.index.js

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ var index = require('../src/index.js');
1111

1212
describe('测试文件', function () {
1313
it('exports', function (done) {
14-
expect(index).toEqual('index');
1514
done();
1615
});
1716
});

0 commit comments

Comments
 (0)
Please sign in to comment.