You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Public analytics as a Node.js microservice, no sysadmin experience required.
4
4
5
-
[](https://travis-ci.org/micro-analytics/micro-analytics)[](https://deploy.now.sh/?repo=https://github.com/micro-analytics/micro-analytics-cli)
5
+
[](https://travis-ci.org/micro-analytics/micro-analytics)[](https://deploy.now.sh/?repo=https://github.com/micro-analytics/micro-analytics-cli)
6
6
7
7
8
8
A tiny analytics server with ~100 lines of code, easy to run and hack around on. It does one thing, and it does it well: count the views of something and making the views publicly accessible via an API.
Copy file name to clipboardExpand all lines: writing-adapters.md
+27-24Lines changed: 27 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,33 @@ module.exports = {
32
32
}
33
33
```
34
34
35
-
Let's dive into the individual methods:
35
+
## Tests
36
+
37
+
There is pre-written tests for adapters that you can use to make sure you adapter is implemented
38
+
correctly. These can be easily used by adding jest and micro-analytics-cli as a dev dependency to your adapter(e.g. `npm install --save-dev micro-analytics-cli jest`). Then create a test file like the one below.
> **Note:** If your database of choice does not support subscriptions, it is fine not to have `adapter.subscribe` as long as you mention that visibly in your documentation.
187
-
188
-
## Tests
189
-
190
-
There is pre-written tests for adapters that you can use to make sure you adapter is implemented
191
-
correctly. These can be easily used by adding jest and micro-analytics-cli as a dev dependency to your adapter(e.g. `npm install --save-dev micro-analytics-cli jest`). Then create a test file like the one below.
0 commit comments