Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V11 (Major) #509

Merged
merged 161 commits into from Jan 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
ac58e94
Upgrade mocha to version 5.2.0
depfu[bot] May 19, 2018
bcb372f
Upgrade eslint-config-pretty-standard to version 2.0.0
depfu[bot] Jun 25, 2018
8f3de44
Update nyc to version 13.0.1
depfu[bot] Aug 27, 2018
0bd0137
Update eslint to version 5.5.0
depfu[bot] Sep 1, 2018
cfb01bc
Update rollup to version 0.65.1
depfu[bot] Sep 5, 2018
eabe62d
Revert "Revert "Merge pull request #482 from alexjeffburke/feature/in…
sunesimonsen Sep 5, 2018
87296bc
Travis: Drop node.js < 6 support
papandreou Sep 5, 2018
bd7a235
Merge remote-tracking branch 'remotes/origin/depfu/update/npm/eslint-…
papandreou Sep 5, 2018
ec9bb18
Merge remote-tracking branch 'remotes/origin/depfu/update/npm/mocha-5…
papandreou Sep 5, 2018
2c6da6f
Merge remote-tracking branch 'remotes/origin/depfu/update/npm/rollup-…
papandreou Sep 5, 2018
d426b10
Merge remote-tracking branch 'remotes/origin/depfu/update/npm/nyc-13.…
papandreou Sep 5, 2018
44416b0
Merge remote-tracking branch 'remotes/origin/depfu/update/npm/eslint-…
papandreou Sep 5, 2018
3dfdeeb
Drop compatibility with pre-10.10.0 type.diff return values
papandreou Jul 15, 2017
becb826
Remove node.js >= 6 guard in the jest external tests
papandreou Sep 5, 2018
e0c3bf5
Remove node.js < 3 guard from function tests
papandreou Sep 5, 2018
961ae38
Remove jest version check, assume that it works now that we only supp…
papandreou Sep 5, 2018
ecf4e76
Update rollup-plugin-uglify to version 5.0.2
depfu[bot] Sep 5, 2018
0f6fdb6
Fix jest invocation for non-modern nodes (6-7)
papandreou Sep 5, 2018
94ca16f
Merge remote-tracking branch 'origin/depfu/update/npm/rollup-plugin-u…
papandreou Sep 5, 2018
feb32d1
Merge pull request #407 from unexpectedjs/feature/dropCompatibilityWi…
sunesimonsen Sep 9, 2018
00c2f34
Update eslint to version 5.6.0
depfu[bot] Sep 16, 2018
1b5d97e
Update gh-pages to version 2.0.0
depfu[bot] Sep 17, 2018
2df1367
Update rollup to version 0.66.0
depfu[bot] Sep 17, 2018
e0febfe
Update rollup-plugin-uglify to version 6.0.0
depfu[bot] Sep 17, 2018
3e3d0dd
Merge branch 'master' into v11
papandreou Sep 28, 2018
f1e6a58
Remember to .clone() in some of the external tests
papandreou Sep 28, 2018
2fad29f
Freeze the top level expect
papandreou Sep 28, 2018
705a820
Merge pull request #517 from unexpectedjs/feature/freezeTopLevelExpect
papandreou Sep 29, 2018
a637e3e
Merge branch 'master' into v11
papandreou Sep 29, 2018
a469d89
Convert new/changed tests to use arrow functions.
papandreou Sep 29, 2018
89d19ed
Update eslint to version 5.6.1
depfu[bot] Sep 29, 2018
35b862c
Merge remote-tracking branch 'origin/depfu/update/npm/eslint-5.6.1' i…
papandreou Sep 29, 2018
930431c
Make expect({foo: <function>}, 'to satisfy', {foo: <function>}) compa…
papandreou Apr 17, 2018
b11b96b
Simply expect.it handling
sunesimonsen Sep 30, 2018
3e15f5b
Added a test for using an expect.it function wrapper in to satisfy
sunesimonsen Sep 30, 2018
8b0cd9d
Fix output formatting in test
sunesimonsen Sep 30, 2018
40ed939
Special case expect.it(subject => ...)
sunesimonsen Sep 30, 2018
f88bdf9
Update eslint-plugin-prettier to version 3.0.0
depfu[bot] Oct 2, 2018
9049284
Merge remote-tracking branch 'origin/depfu/update/npm/eslint-plugin-p…
papandreou Oct 2, 2018
98e08e2
Added some more tests for the expect.it function wrapper
sunesimonsen Oct 2, 2018
cc6c07d
Don't be retro
sunesimonsen Oct 3, 2018
8a2394e
Merge pull request #328 from unexpectedjs/feature/toSatisfyCompareFun…
sunesimonsen Oct 3, 2018
1d885d1
Update eslint to version 5.8.0
depfu[bot] Oct 27, 2018
0a49106
Merge remote-tracking branch 'origin/depfu/update/npm/eslint-5.8.0' i…
papandreou Oct 28, 2018
f084a2a
Update unexpected-documentation-site-generator to version 5.0.0
depfu[bot] Oct 31, 2018
4b6d5b0
Merge branch 'master' into v11
papandreou Nov 8, 2018
3fdd797
Update eslint to version 5.9.0
depfu[bot] Nov 10, 2018
1f105bc
Merge remote-tracking branch 'origin/depfu/update/npm/eslint-5.9.0' i…
papandreou Nov 10, 2018
b3c07fc
Update jasmine to version 3.3.1
depfu[bot] Dec 7, 2018
0b91c99
Update eslint to version 5.10.0
depfu[bot] Dec 9, 2018
47109ab
Merge branch 'master' into v11
papandreou Dec 9, 2018
ca9c8b7
Make the <function> type a subtype of <object>
papandreou Apr 16, 2018
a2f621b
Fix most of the failing tests by increasing the specificity of the <a…
papandreou Dec 22, 2018
2333ae5
Wrap function in expect.it to avoid relying on the ...to satisfy <fun…
papandreou Dec 22, 2018
4b90872
function => expect.it
papandreou Dec 22, 2018
d27c5fe
Fix one test that should have used expect.it
papandreou Dec 22, 2018
f5b19a7
Fix another test that should have used expect.it
papandreou Dec 22, 2018
6ea3eb8
Make sure that <object> to satisfy <function> fails, fix test
papandreou Dec 22, 2018
c97f85e
Fix missing expect.it in test
papandreou Dec 23, 2018
9dc89c3
Add missing expect.it to 3 tests
papandreou Dec 23, 2018
c1a1ca0
Don't render an object diff when both the subject and rhs are functions
papandreou Dec 24, 2018
ef7482e
<object> to satisfy <object>: Only extract own properties from the RH…
papandreou Dec 24, 2018
d857849
Remove assertion that I added on the branch but which seems to be unn…
papandreou Dec 24, 2018
82c0ac7
Remove <UnexpectedError> to [exhaustively] satisfy <function> assertion
papandreou Dec 24, 2018
0eddddc
Remove <Error> to satisfy <function> from the documentation
papandreou Dec 24, 2018
bd7a0f6
Test function diff
papandreou Dec 25, 2018
e073551
Fix describe text
papandreou Dec 25, 2018
08e574a
Remove no longer relevant test (that just happens to still pass)
papandreou Dec 25, 2018
58be731
Add function to satisfy tests
papandreou Dec 25, 2018
d5204d4
Add more missing expect.its in tests
papandreou Dec 25, 2018
eaef8e3
Add more missing expect.its to tests
papandreou Dec 25, 2018
d581885
Prohibit <object> to satisfy <function> now that all occurrences are …
papandreou Dec 25, 2018
76ef9e2
Fix documentation tests
papandreou Dec 25, 2018
ed0953b
Merge branch 'master' into v11
sunesimonsen Dec 26, 2018
9d6581b
Stop testing jest on all Node versions
sunesimonsen Dec 26, 2018
1cc60c3
Increase the Karma timeout to 1 minute
sunesimonsen Dec 26, 2018
d840ced
Paralellize the Travis build, by splitting the main target
sunesimonsen Dec 26, 2018
163d598
Wrap functions in expect.it in docs for to have an item/items satisfying
papandreou Dec 26, 2018
770a4a5
object to satisfy object: Fix another function vs. expect.it glitch t…
papandreou Dec 26, 2018
f63163f
<function> to satisfy <function>: Delegate to 'to be' to the error me…
papandreou Dec 26, 2018
ebada92
to have items satisfying: Don't expect the index to be passed as the …
papandreou Dec 26, 2018
5eaff89
to have items satisfying: Don't expect to receive the index
papandreou Dec 26, 2018
7b9b2c8
Change the semantics of to have (a value|an item|items|keys|values) <…
papandreou Dec 26, 2018
6755720
Fix lint
papandreou Dec 26, 2018
e988e8a
Fix test by making sure that the 'to be' assertion fails with a label
papandreou Dec 26, 2018
8446402
Un-convert expect to the string version to gain better coverage
papandreou Dec 26, 2018
0226228
Update documentation
papandreou Dec 26, 2018
66b8452
to be: Use a less beautiful, but faster way to fail with a label
papandreou Dec 26, 2018
b16636c
Merge pull request #542 from unexpectedjs/feature/unsupportToHaveItem…
papandreou Dec 26, 2018
663e8c4
Merge branch 'v11' into feature/functionSubtypeOfObject
papandreou Dec 26, 2018
a10e8d7
Merge pull request #448 from unexpectedjs/feature/functionSubtypeOfOb…
papandreou Dec 26, 2018
1970431
REVERT once v11 is out of beta: Specify tag:beta in package.json
papandreou Dec 26, 2018
c3e969f
Build unexpected.js
papandreou Dec 26, 2018
5d03349
11.0.0-0
papandreou Dec 26, 2018
2910155
Updated the changelog
papandreou Dec 26, 2018
7dbe873
<object> to satisfy <object>: Do not dereference properties that aren…
papandreou Dec 26, 2018
0a3d6ff
Merge pull request #543 from unexpectedjs/fix/satisfyDereference
papandreou Dec 26, 2018
5bbd500
Build unexpected.js
papandreou Dec 26, 2018
de2a995
11.0.0-1
papandreou Dec 26, 2018
5123861
Added test for nested diffs with an expect.it wrapper function
sunesimonsen Dec 26, 2018
be9f953
Mhh the expect.it diffing has gotten fancyer
sunesimonsen Dec 26, 2018
75be672
Testing nested diffs with async expect.it wrapper functions
sunesimonsen Dec 27, 2018
2c2f98f
Update eslint to version 5.11.1
depfu[bot] Dec 28, 2018
6f5d4b2
Avoid rebuilding twice by not listing the sourcemap as a target.
alexjeffburke Dec 28, 2018
5dc57e7
Fix test script to execute headless browser in place of phantomjs.
alexjeffburke Dec 28, 2018
2569cdb
Treat object overload for to satisfying against expect.it like any
sunesimonsen Dec 28, 2018
21fc8b3
Implement a regression test for the behaviour caught by our plugins.
alexjeffburke Dec 28, 2018
10ed92c
Update eslint-plugin-prettier to version 3.0.1
depfu[bot] Dec 29, 2018
538d1a4
Merge pull request #547 from unexpectedjs/ssimonsen/fix-unexpected-me…
sunesimonsen Dec 29, 2018
f44439d
Add two regression tests for the behaviour of array-like "to satisfy".
alexjeffburke Dec 29, 2018
b34a3bf
Ensure a valid context is given to expect.it() for array-like values.
alexjeffburke Dec 29, 2018
d7e5f5f
Address a number of issues with array-like "to satisfy".
alexjeffburke Dec 29, 2018
5050f66
Update rollup to version 1.0.0
depfu[bot] Dec 29, 2018
394e818
Correct a typo in test-sources target causing doc tests not to run.
alexjeffburke Dec 30, 2018
518e53f
Add an initial migration guide.
alexjeffburke Dec 30, 2018
92f7b6c
Minor copy edits to tighten the language.
alexjeffburke Dec 30, 2018
f1db01b
Tighten the examples and emphasise expect.it().
alexjeffburke Dec 30, 2018
4c95092
Swap "Use of" to "Using" to differentiate the intent.
alexjeffburke Dec 30, 2018
86bb4bc
Merge pull request #550 from unexpectedjs/fix/arrayLikeToSatisfyAndPr…
papandreou Dec 31, 2018
1f9956b
Makefile: Reintroduce $TARGETS, still avoiding the double build
papandreou Dec 31, 2018
f15420c
Build unexpected.js
papandreou Dec 31, 2018
3931ea4
11.0.0-2
papandreou Dec 31, 2018
db917f0
Merge remote-tracking branch 'origin/depfu/update/npm/eslint-5.11.1' …
papandreou Dec 31, 2018
ad7faeb
Merge remote-tracking branch 'origin/depfu/update/npm/eslint-plugin-p…
papandreou Dec 31, 2018
7862a25
Merge remote-tracking branch 'origin/depfu/update/npm/rollup-1.0.0' i…
papandreou Dec 31, 2018
cea10d7
Merge remote-tracking branch 'origin/depfu/update/npm/jasmine-3.3.1' …
papandreou Dec 31, 2018
7f81e3f
Merge branch 'master' into v11
papandreou Dec 31, 2018
4dc06f1
Build unexpected.js
papandreou Dec 31, 2018
7a5aa5f
11.0.0-3
papandreou Dec 31, 2018
efca675
Clarify the functions by value section.
alexjeffburke Jan 1, 2019
7b8386e
Reorder the sections within the migration guide.
alexjeffburke Jan 1, 2019
85a92a7
Correct misspellings.
alexjeffburke Jan 1, 2019
388859c
Merge branch 'master' into v11
papandreou Jan 1, 2019
47fba08
Test that the to be fulfilled/rejected with assertions support expect.it
papandreou Jan 1, 2019
faf7479
Merge branch 'master' into v11
papandreou Jan 2, 2019
53e7016
Fix tests merged from master so they work with the transpiled browser…
papandreou Jan 2, 2019
0158a89
Build unexpected.js
papandreou Jan 2, 2019
65c9589
11.0.0-4
papandreou Jan 2, 2019
bdb1088
Empty commit to see if netlify picks up
papandreou Jan 2, 2019
6f3f45b
Avoid using arrow functions in tests where they're being inspected
papandreou Jan 2, 2019
93d606f
REVERT ME when merging v11 to master: Don't deploy the documentation …
papandreou Jan 2, 2019
fbd40b1
Fix rendering the hyphen.
alexjeffburke Jan 2, 2019
a19cb76
Convert all assertion references to links.
alexjeffburke Jan 2, 2019
6e70a6a
Add a function by value example.
alexjeffburke Jan 3, 2019
2cf148e
Show the expect.it() function argument syntax.
alexjeffburke Jan 3, 2019
8e5bf1b
Stop generating a menu entry for the migration page
sunesimonsen Jan 3, 2019
36c7f69
Add a separate releases page with an entry for 11.0.0
papandreou Jan 3, 2019
16a3378
Made all internal doc URL's relative and with a trailing slash
sunesimonsen Jan 3, 2019
caede1a
Merge pull request #561 from unexpectedjs/ssimonsen/relative-doc-urls
sunesimonsen Jan 3, 2019
46d8be4
Merge pull request #546 from unexpectedjs/cleanup/fixTestScriptWithLo…
sunesimonsen Jan 3, 2019
2b769d6
Merge branch 'master' into v11
papandreou Jan 4, 2019
78a8111
Remove expect.async
papandreou Jan 5, 2019
3b2594e
Remove long-deprecated support for this.subject etc. in assertion han…
papandreou Jan 5, 2019
a10c31b
Merge pull request #566 from unexpectedjs/chore/removeExpectAsync
papandreou Jan 5, 2019
55b7bb6
Merge pull request #567 from unexpectedjs/chore/unsupportThisInAssert…
papandreou Jan 5, 2019
306df25
Fix typos
papandreou Jan 5, 2019
012b2fc
Mention the two additional deprecations on the release and migration …
papandreou Jan 5, 2019
0eaf94d
Tweak a section heading.
alexjeffburke Jan 5, 2019
680d939
Merge branch 'master' into v11
papandreou Jan 5, 2019
1b6ef4b
Merge branch 'docs/migrationGuide' into v11
papandreou Jan 5, 2019
efa0ea2
Docs: Mention that node.js < 6 is unsupported per Unexpected 11
papandreou Jan 5, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 12 additions & 6 deletions .travis.yml
Expand Up @@ -4,20 +4,26 @@ env:
- TARGET=travis

node_js:
- "0.10"
- "0.12"
- "4"
- "5"
- "6"
- "7"
- "8.4.0"
- "9"
- "10"

matrix:
include:
- name: Travis main 8.4.0
- name: Lint (8.4.0)
node_js: "8.4.0"
env: TARGET=travis-main
env: TARGET=lint
- name: Jest (8.4.0)
node_js: "8.4.0"
env: TARGET=test-jest
- name: Jasmine (8.4.0)
node_js: "8.4.0"
env: TARGET=test-jasmine
- name: Coverage (8.4.0)
node_js: "8.4.0"
env: TARGET=travis-coverage
- name: BrowserStack IE11
node_js: "8.4.0"
env: TARGET=test-browserstack-ie11
Expand Down
18 changes: 8 additions & 10 deletions Makefile
@@ -1,6 +1,8 @@
REPORTER = dot

TARGETS ?= unexpected.js unexpected.js.map
.PHONY: unexpected.js
.SECONDARY: unexpected.js.map

CHEWBACCA_THRESHOLD ?= 25

Expand All @@ -25,7 +27,6 @@ build/externaltests: externaltests/*

build: build/lib build/test build/externaltests

.PHONY: ${TARGETS}
${TARGETS}: build
./node_modules/.bin/rollup --config rollup.config.js --sourcemap --format umd --name weknowhow.expect -o unexpected.js build/lib/index.js

Expand All @@ -50,15 +51,12 @@ test-jest:
ifeq ($(MODERN_NODE), true)
./node_modules/.bin/jest
else
./node_modules/.bin/jest -c test/jest.es5.config.json
./node_modules/.bin/jest --rootDir . -c test/jest.es5.config.json
endif

test-jest-if-supported-node-version:
@node-version-gte-6 && make test-jest || echo Skipping, jest is unsupported with node $(shell node --version)

.PHONY: test
test: test-sources
@./node_modules/.bin/mocha --opts $(MOCHA_OPTS) $(TEST_SOURCES) $(TEST_SOURCE_MARKDOWN)
@./node_modules/.bin/mocha --opts $(MOCHA_OPTS) $(TEST_SOURCES) $(TEST_SOURCES_MARKDOWN)

nyc-includes:
ifeq ($(MODERN_NODE), true)
Expand All @@ -84,12 +82,12 @@ test-chrome-headless: ${TARGETS}
test-browserstack-%: ${TARGETS}
@./node_modules/.bin/karma start --browsers=$* --single-run

.PHONY: travis-main
travis-main: clean lint test test-jasmine test-jest coverage
.PHONY: travis-coverage
travis-coverage: clean coverage
-<coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js

.PHONY: travis
travis: test test-jest-if-supported-node-version
travis: test

.PHONY: git-dirty-check
git-dirty-check:
Expand Down Expand Up @@ -117,7 +115,7 @@ changelog: git-dirty-check
fi

.PHONY: release-%
release-%: git-dirty-check lint ${TARGETS} test-chrome-headless test-jasmine test-jest-if-supported-node-version commit-unexpected deploy-site
release-%: git-dirty-check lint ${TARGETS} test-chrome-headless test-jasmine test-jest commit-unexpected
IS_MAKE_RELEASE=yes npm version $*
make changelog
@echo $* release ready to be publised to NPM
Expand Down
54 changes: 27 additions & 27 deletions documentation/api/addType.md
Expand Up @@ -299,32 +299,32 @@ block. The outputs below shows the contrast between setting the
inlineDiff = true;
expect(
{
'John Doe': new Person('John Doe', 42),
'Jane Doe': new Person('Janie Doe', 24)
JohnDoe: new Person('John Doe', 42),
JaneDoe: new Person('Janie Doe', 24)
},
'to equal',
{
'John Doe': new Person('John Doe', 42),
'Jane Doe': new Person('Jane Doe', 24)
JohnDoe: new Person('John Doe', 42),
JaneDoe: new Person('Jane Doe', 24)
}
);
```

```output
expected
{
'John Doe': new Person('John Doe', 42),
'Jane Doe': new Person('Janie Doe', 24)
JohnDoe: new Person('John Doe', 42),
JaneDoe: new Person('Janie Doe', 24)
}
to equal
{
'John Doe': new Person('John Doe', 42),
'Jane Doe': new Person('Jane Doe', 24)
JohnDoe: new Person('John Doe', 42),
JaneDoe: new Person('Jane Doe', 24)
}

{
'John Doe': new Person('John Doe', 42),
'Jane Doe': new Person(
JohnDoe: new Person('John Doe', 42),
JaneDoe: new Person(
'Janie Doe', // should be 'Jane Doe'
// -Janie Doe
// +Jane Doe
Expand All @@ -337,39 +337,39 @@ to equal
inlineDiff = false;
expect(
{
'John Doe': new Person('John Doe', 42),
'Jane Doe': new Person('Janie Doe', 24)
JohnDoe: new Person('John Doe', 42),
JaneDoe: new Person('Janie Doe', 24)
},
'to equal',
{
'John Doe': new Person('John Doe', 42),
'Jane Doe': new Person('Jane Doe', 24)
JohnDoe: new Person('John Doe', 42),
JaneDoe: new Person('Jane Doe', 24)
}
);
```

```output
expected
{
'John Doe': new Person('John Doe', 42),
'Jane Doe': new Person('Janie Doe', 24)
JohnDoe: new Person('John Doe', 42),
JaneDoe: new Person('Janie Doe', 24)
}
to equal
{
'John Doe': new Person('John Doe', 42),
'Jane Doe': new Person('Jane Doe', 24)
JohnDoe: new Person('John Doe', 42),
JaneDoe: new Person('Jane Doe', 24)
}

{
'John Doe': new Person('John Doe', 42),
'Jane Doe': new Person('Janie Doe', 24) // should equal new Person('Jane Doe', 24)
//
// new Person(
// 'Janie Doe', // should be 'Jane Doe'
// // -Janie Doe
// // +Jane Doe
// 24
// )
JohnDoe: new Person('John Doe', 42),
JaneDoe: new Person('Janie Doe', 24) // should equal new Person('Jane Doe', 24)
//
// new Person(
// 'Janie Doe', // should be 'Jane Doe'
// // -Janie Doe
// // +Jane Doe
// 24
// )
}
```

Expand Down
33 changes: 0 additions & 33 deletions documentation/api/async.md

This file was deleted.

2 changes: 1 addition & 1 deletion documentation/api/fail.md
Expand Up @@ -99,5 +99,5 @@ If you are using the default error mode, you don't have to specify the
error message as it is just thrown away.

The diff is a method that will create a custom diff lazily. To get a
better understanding of the diff method see the [type](/api/addType)
better understanding of the diff method see the [type](../addType/)
documentation.
4 changes: 2 additions & 2 deletions documentation/api/promise-all.md
Expand Up @@ -10,7 +10,7 @@ fulfilled. If any of the promises is rejected, the resulting promise will be
rejected with the same error.

This method is usually used in combination with
[expect.promise.settle](/api/promise-settle).
[expect.promise.settle](../promise-settle/).

Let's make an asynchronous assertion that we can use for the examples:

Expand All @@ -30,7 +30,7 @@ expect.addAssertion('to be a number after a short delay', function(
});
```

See the [promise](/api/promise) documentation for more details on how
See the [promise](../promise/) documentation for more details on how
expect.promise works.

The following code snippet creates a promise that is fulfilled when all the
Expand Down
2 changes: 1 addition & 1 deletion documentation/api/promise-any.md
Expand Up @@ -27,7 +27,7 @@ expect.addAssertion('to be a number after a short delay', function(
});
```

See the [promise](/api/promise) documentation for more details on how
See the [promise](../promise/) documentation for more details on how
expect.promise works.

The following code snippet creates a promise that will be fulfilled when any
Expand Down
2 changes: 1 addition & 1 deletion documentation/api/promise-settle.md
Expand Up @@ -28,7 +28,7 @@ expect.addAssertion('to be a number after a short delay', function(
});
```

See the [promise](/api/promise) documentation for more details on how
See the [promise](../promise/) documentation for more details on how
expect.promise works.

The following code snippet creates a promise that is rejected when any
Expand Down
2 changes: 1 addition & 1 deletion documentation/api/promise.md
@@ -1,6 +1,6 @@
# expect.promise(promiseBody)

This method is used inside [addAssertion](/api/addAssertion) to create
This method is used inside [addAssertion](../addAssertion/) to create
a promise from the given body function.

Signature:
Expand Down
4 changes: 2 additions & 2 deletions documentation/api/use.md
Expand Up @@ -37,7 +37,7 @@ to extend the instance.
expect.use(require('unexpected-sinon'));
```

Notice that it is usually a good idea to [clone](../clone) the instance before
Notice that it is usually a good idea to [clone](../clone/) the instance before
extending it with plugins.

## Example
Expand Down Expand Up @@ -101,4 +101,4 @@ expected [7,13] to contain 27
```

For more inspiration you can look at the source for existing plugins.
See [the plugin page](/plugins/) for a list.
See [the plugin page](../../plugins/) for a list.
2 changes: 1 addition & 1 deletion documentation/api/withError.md
Expand Up @@ -4,7 +4,7 @@ In some situations you want to modify an error thrown from
unexpected. This method handles all the details for you.

Notice that this method is only available inside
[expect.addAssertion](/api/addAssertion).
[expect.addAssertion](../addAssertion/).

The standard case is to attach a diff or change the error message of
an error being thrown.
Expand Down
Expand Up @@ -20,7 +20,7 @@ return expect(
```

The expected value will be matched against the value with
[to satisfy](/assertions/any/to-satisfy/) semantics, so you can pass any of the
[to satisfy](../../any/to-satisfy/) semantics, so you can pass any of the
values supported by `to satisfy`:

```js#async:true
Expand Down Expand Up @@ -50,7 +50,7 @@ expected Promise to be fulfilled with value satisfying 'def'
```

You can use the `exhaustively` flag to use strict
[to satisfy](/assertions/any/to-satisfy/) semantics:
[to satisfy](../../any/to-satisfy/) semantics:

```js#async:true
return expect(
Expand Down
2 changes: 1 addition & 1 deletion documentation/assertions/Promise/to-be-fulfilled-with.md
Expand Up @@ -18,7 +18,7 @@ return expect(
```

The expected value will be matched against the value with
[to satisfy](/assertions/any/to-satisfy/) semantics, so you can pass any of the
[to satisfy](../../any/to-satisfy/) semantics, so you can pass any of the
values supported by `to satisfy`:

```js#async:true
Expand Down
Expand Up @@ -18,7 +18,7 @@ return expect(
```

The expected reason will be matched against the rejection reason with
[to satisfy](/assertions/any/to-satisfy/) semantics, so you can pass any of the
[to satisfy](../../any/to-satisfy/) semantics, so you can pass any of the
values supported by `to satisfy`:

```js#async:true
Expand Down Expand Up @@ -70,7 +70,7 @@ expected Promise to be rejected with error satisfying Error('bugger')
```

You can use the `exhaustively` flag to use strict
[to satisfy](/assertions/any/to-satisfy/) semantics:
[to satisfy](../../any/to-satisfy/) semantics:

```js#async:true
var error = new Error('Oh dear');
Expand Down
2 changes: 1 addition & 1 deletion documentation/assertions/Promise/to-be-rejected-with.md
Expand Up @@ -18,7 +18,7 @@ return expect(
```

The expected reason will be matched against the rejection reason with
[to satisfy](/assertions/any/to-satisfy/) semantics, so you can pass any of the
[to satisfy](../../any/to-satisfy/) semantics, so you can pass any of the
values supported by `to satisfy`:

```js#async:true
Expand Down
2 changes: 1 addition & 1 deletion documentation/assertions/any/to-be-a.md
Expand Up @@ -4,7 +4,7 @@ This assertion makes use of the type system in Unexpected. That means
you can assert that a value is an instance of a type specified by
its name (as a string).

For more information abort the type system see: [Types](/api/addType/)
For more information abort the type system see: [Types](../../../api/addType/)

```js
expect(true, 'to be a', 'boolean');
Expand Down
2 changes: 1 addition & 1 deletion documentation/assertions/any/to-be-ok.md
@@ -1,6 +1,6 @@
Asserts that the value is _truthy_.

Alias for [to be truthy](../to-be-truthy).
Alias for [to be truthy](../../any/to-be-truthy/).

```js
expect(1, 'to be ok');
Expand Down
Expand Up @@ -21,7 +21,7 @@ when passed as parameter to function increment(n) { return n + 1; } to equal 3
```

This assertion delegates to the
[when passed as parameters to](/assertions/array-like/when-passed-as-parameters-to/)
[when passed as parameters to](../../array-like/when-passed-as-parameters-to/)
assertion and also supports the `async` and `constructor` flags.

If you don't provide an assertion to delegate to, the return value will be provided
Expand Down