summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-24 17:20:48 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-24 17:20:48 +0100
commit3a0636046ea0b9bc898438d502e3bf80f6c4d312 (patch)
treeb1515531421cd82baaaf705e3b702350bc7ff7fd /test
parent52eccb29e49f2199cbd73f522de47a7bd764c7dd (diff)
downloadgitbook-3a0636046ea0b9bc898438d502e3bf80f6c4d312.zip
gitbook-3a0636046ea0b9bc898438d502e3bf80f6c4d312.tar.gz
gitbook-3a0636046ea0b9bc898438d502e3bf80f6c4d312.tar.bz2
Fix binding to context for plugin blocks
Diffstat (limited to 'test')
-rw-r--r--test/plugins.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/plugins.js b/test/plugins.js
index 8207663..172e00c 100644
--- a/test/plugins.js
+++ b/test/plugins.js
@@ -168,11 +168,11 @@ describe('Plugins', function() {
});
it('should correctly normalize block', function() {
- blocks.hello.exec({ body: 'World' }).should.equal('Hello World!');
+ blocks.hello.process({ body: 'World' }).should.equal('Hello World!');
});
it('should correctly set contexts for filter', function() {
- blocks.testContext.exec({ body: 'Hello' });
+ blocks.testContext.process({ body: 'Hello' });
});
});
});