Граф коммитов

557 Коммитов

Автор SHA1 Сообщение Дата
Andrew Naylor e893a3ace7 url args presence 2015-04-02 00:31:40 +01:00
Andrew Naylor 5c79401279 same for newsstand 2015-04-01 19:39:10 +01:00
Andrew Naylor ae60dbb864 Test the content available property 2015-03-31 00:00:14 +01:00
Andrew Naylor c70ef8c60b Use newest possible version of npm
npmlog in 2.7.4 broke 0.8 support: 4bfbaa2d8b

https://github.com/iarna/are-we-there-yet/issues/1
2015-03-30 13:34:45 +01:00
Andrew Naylor 71398db791 Revert "node 0.8's npm doesn't seem to support `^` semver"
This reverts commit 57418f2f91.

Conflicts:
	package.json
2015-03-30 09:33:15 +01:00
Andrew Naylor 8bda9d77d4 dependencies use '^' in versions
http://tech.vg.no/2014/05/30/npm-travis-node-and-the-caret-operator/
2015-03-29 16:41:21 +01:00
Andrew Naylor 1c386151a9 Don't push with unstaged changes! 2015-03-28 11:03:09 +00:00
Andrew Naylor 6e488ea3d6 Test the main payload 2015-03-28 10:55:47 +00:00
Andrew Naylor 1e82a14499 Content Available should be present 2015-03-27 09:48:16 +00:00
Andrew Naylor b7d635be6c Further checking of toJSON 2015-03-26 09:46:34 +00:00
Andrew Naylor aec4a8dff4 Make it clearer that it's expecting an object 2015-03-25 09:29:22 +00:00
Andrew Naylor 53e1829f07 Badge value should be included 2015-03-24 08:32:30 +00:00
Andrew Naylor 372229282c JSHint is complaining
Could be null or undefined, check for both.
2015-03-23 00:09:19 +00:00
Andrew Naylor 18a46635b0 null comparison is sketchy 2015-03-22 00:21:58 +00:00
Andrew Naylor ced9c525af Don't use square brackets 2015-03-21 00:52:39 +00:00
Andrew Naylor 34982c6c55 Missing semicolons 2015-03-20 23:31:18 +00:00
Andrew Naylor b636feec15 Double quotes everywhere! 2015-03-20 23:28:22 +00:00
Andrew Naylor f1ec67cf0f Last piece of functionality to test 2015-03-20 09:10:35 +00:00
Andrew Naylor 91f286ac4e I guess this wasn't tested!
An example of testing being important
2015-03-19 15:08:46 +00:00
Andrew Naylor 17b6c968f4 word truncation needs testing 2015-03-18 09:38:44 +00:00
Andrew Naylor ae6a9df047 The alert property can also be an object 2015-03-17 08:31:47 +00:00
Andrew Naylor 22e841513b aps payload should only be present when needed 2015-03-16 09:15:55 +00:00
Andrew Naylor d072dc7e7b Don't use function before it is declared 2015-03-15 18:05:18 +00:00
Andrew Naylor 2a936a7720 Simplify with forEach instead of for..in 2015-03-14 12:21:05 +00:00
Andrew Naylor cfc0ef37f3 forEach is better in every way 2015-03-12 09:39:56 +00:00
Andrew Naylor 3fbb37c9ef Bad quotes 2015-03-11 09:37:38 +00:00
Andrew Naylor 92c71720ac Codacy: Enforce hasOwnProperty in loops
It's easier and more appropriate to use forEach here...
2015-03-11 09:36:41 +00:00
Andrew Naylor d32495a692 use strict; 2015-03-11 09:35:41 +00:00
Andrew Naylor 0884da553a toJSON will be refactored. 2015-03-10 18:35:54 +00:00
Collin Fair 1855de44b0 An odd number of escape characters will break trimming
Fixes #220
2015-03-09 09:45:35 +00:00
Andrew Naylor 5e354c7c79 Failing test for #220 2015-03-09 09:41:08 +00:00
Andrew Naylor 286f1e14d6 Not a perfect test, but it'll do for now. 2015-03-08 14:32:53 +00:00
Andrew Naylor db2481164a This is an awkward scenario to describe 2015-03-08 14:32:01 +00:00
Andrew Naylor 466dc52492 Intentional trailing slashes should be left alone 2015-03-07 00:20:47 +00:00
Andrew Naylor 01a7ccddba Failure case for trim, small refactor 2015-03-06 22:23:30 +00:00
Andrew Naylor c3ff69d9dc Return the number of bytes trimmed. 2015-03-06 09:55:40 +00:00
Andrew Naylor 230e175bcb Reorganised tests to make way for more tests! 2015-03-05 08:13:25 +00:00
Andrew Naylor 6e64ce86ed Missing a happy case. 2015-03-04 14:34:41 +00:00
Andrew Naylor 95dac540d1 It's not clear that `production` can be overridden
#245
2015-03-03 19:14:13 +00:00
Andrew Naylor f6acb650ff More specific test for trailing slashes. 2015-03-02 19:23:20 +00:00
Andrew Naylor 88ea048201 Missing semicolon 2015-03-02 18:53:40 +00:00
Andrew Naylor 1d438abcbb Setup context 2015-03-02 18:49:07 +00:00
Andrew Naylor c9d8536872 The encoding must be respected when trimming 2015-03-02 18:46:10 +00:00
Andrew Naylor 0ac3d669ca v1.7.3 2015-03-01 14:28:11 +00:00
Andrew Naylor c858cfdb7c The default payload size changed ages ago. 2015-03-01 14:16:08 +00:00
Andrew Naylor 3ebd0c4810 VoIP apps can send payloads up to 4096 bytes 2015-03-01 14:14:41 +00:00
Andrew Naylor 0a123083cb ValidNotification behaviour will change. Test now. 2015-02-28 17:20:53 +00:00
Andrew Naylor 5ceea668bb The custom length is needed for testing
It could still be useful in general, but should be tested.
2015-02-27 08:29:25 +00:00
Andrew Naylor 6048dbd44d The test text was a lot longer than necessary 2015-02-27 08:28:46 +00:00
Andrew Naylor a8cf6abb17 The test text shouldn't have been duplicated 2015-02-27 08:20:39 +00:00