Skip to content

Commit e34b1aa

Browse files
phatedactions-user
authored andcommitted
chore: Run prettier
1 parent da9b3ad commit e34b1aa

File tree

3 files changed

+25
-27
lines changed

3 files changed

+25
-27
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Request for contributions
22

33
Please contribute to this repository if any of the following is true:
4+
45
- You have expertise in community development, communication, or education
56
- You want open source communities to be more collaborative and inclusive
67
- You want to help lower the burden to first time contributors
@@ -15,16 +16,16 @@ Prerequisites:
1516
In particular, this community seeks the following types of contributions:
1617

1718
- ideas: participate in an Issues thread or start your own to have your voice
18-
heard
19+
heard
1920
- resources: submit a PR to add to [docs README.md](/docs/README.md) with links to related content
2021
- outline sections: help us ensure that this repository is comprehensive. if
21-
there is a topic that is overlooked, please add it, even if it is just a stub
22-
in the form of a header and single sentence. Initially, most things fall into
23-
this category
22+
there is a topic that is overlooked, please add it, even if it is just a stub
23+
in the form of a header and single sentence. Initially, most things fall into
24+
this category
2425
- write: contribute your expertise in an area by helping us expand the included
25-
content
26+
content
2627
- copy editing: fix typos, clarify language, and generally improve the quality
27-
of the content
28+
of the content
2829
- formatting: help keep content easy to read with consistent formatting
2930
- code: Fix issues or contribute new features to this or any related projects
3031

@@ -64,7 +65,6 @@ making this community a safe place for you and we've got your back.
6465
Likewise any spamming, trolling, flaming, baiting or other attention-stealing
6566
behavior is not welcome.
6667

67-
6868
# Communication
6969

7070
There is an IRC channel on irc.freenode.net, channel `#gulpjs`. You're

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,28 @@ Logging (and level of logging) is controlled by [`gulp-cli`][gulp-cli-url]
3535

3636
#### logger.debug(msg)
3737

38-
Highest log level. Typically used for debugging purposes.
38+
Highest log level. Typically used for debugging purposes.
3939

4040
If the first argument is a string, all arguments are passed to node's
4141
[`util.format()`][util-format-url] before being emitted.
4242

4343
#### logger.info(msg)
4444

45-
Standard log level. Typically used for user information.
45+
Standard log level. Typically used for user information.
4646

4747
If the first argument is a string, all arguments are passed to node's
4848
[`util.format()`][util-format-url] before being emitted.
4949

5050
#### logger.warn(msg)
5151

52-
Warning log level. Typically used for warnings.
52+
Warning log level. Typically used for warnings.
5353

5454
If the first argument is a string, all arguments are passed to node's
5555
[`util.format()`][util-format-url] before being emitted.
5656

5757
#### logger.error(msg)
5858

59-
Error log level. Typically used when things went horribly wrong.
59+
Error log level. Typically used when things went horribly wrong.
6060

6161
If the first argument is a string, all arguments are passed to node's
6262
[`util.format()`][util-format-url] before being emitted.
@@ -65,7 +65,6 @@ If the first argument is a string, all arguments are passed to node's
6565

6666
MIT
6767

68-
6968
<!-- prettier-ignore-start -->
7069
[downloads-image]: https://img.shields.io/npm/dm/gulplog.svg?style=flat-square
7170
[npm-url]: https://npmjs.org/package/gulplog

test/index.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ var expect = require('expect');
44

55
var logger = require('../');
66

7-
describe('gulplog', function() {
8-
9-
after(function(done) {
7+
describe('gulplog', function () {
8+
after(function (done) {
109
logger.remove();
1110
done();
1211
});
1312

14-
it('should emit the appropriate event when debug/info/warn/error methods are called', function(done) {
13+
it('should emit the appropriate event when debug/info/warn/error methods are called', function (done) {
1514
var called = { debug: 0, info: 0, warn: 0, error: 0 };
1615
function allDone() {
1716
if (called.debug && called.info && called.warn && called.error) {
@@ -23,25 +22,25 @@ describe('gulplog', function() {
2322
}
2423
}
2524

26-
logger.on('debug', function(msg) {
25+
logger.on('debug', function (msg) {
2726
expect(msg).toEqual('The MOST verbose!');
2827
called.debug++;
2928
allDone();
3029
});
3130

32-
logger.on('info', function(msg) {
31+
logger.on('info', function (msg) {
3332
expect(msg).toEqual('Some important info');
3433
called.info++;
3534
allDone();
3635
});
3736

38-
logger.on('warn', function(msg) {
37+
logger.on('warn', function (msg) {
3938
expect(msg).toEqual('All the warnings to you');
4039
called.warn++;
4140
allDone();
4241
});
4342

44-
logger.on('error', function(msg) {
43+
logger.on('error', function (msg) {
4544
expect(msg).toEqual('OH NO! SOMETHING HAPPENED!');
4645
called.error++;
4746
allDone();
@@ -53,26 +52,26 @@ describe('gulplog', function() {
5352
logger.error('OH NO! SOMETHING HAPPENED!');
5453
});
5554

56-
it('should support util.format syntax', function(done) {
57-
logger.on('debug', function(msg) {
55+
it('should support util.format syntax', function (done) {
56+
logger.on('debug', function (msg) {
5857
expect(msg).toEqual('printf style!');
5958
done();
6059
});
6160

6261
logger.debug('%s style!', 'printf');
6362
});
6463

65-
it('should log an object as it is', function(done) {
66-
logger.on('debug', function(msg) {
67-
expect(msg).toEqual({ my: "obj" });
64+
it('should log an object as it is', function (done) {
65+
logger.on('debug', function (msg) {
66+
expect(msg).toEqual({ my: 'obj' });
6867
done();
6968
});
7069

7170
logger.debug({ my: 'obj' });
7271
});
7372

74-
it('should log an array as it is', function(done) {
75-
logger.on('info', function(msg) {
73+
it('should log an array as it is', function (done) {
74+
logger.on('info', function (msg) {
7675
expect(msg).toEqual([1, 2, 3]);
7776
done();
7877
});

0 commit comments

Comments
 (0)