mirror of
https://github.com/Hopiu/postal.js.git
synced 2026-03-16 22:20:23 +00:00
Added test to show failure of matching topics starting with a slash
This commit is contained in:
parent
dcd8a357d4
commit
2e1bb06735
1 changed files with 10 additions and 0 deletions
|
|
@ -454,6 +454,16 @@ describe( "amqpBindingsResolver", function () {
|
|||
expect( cached ).to.be.ok();
|
||||
} );
|
||||
} );
|
||||
describe( "With topic '/sample/topic' and binding '/sample/topic'", function () {
|
||||
var result = bindingsResolver.compare( "/sample/topic", "/sample/topic" ),
|
||||
cached = bindingsResolver.cache["/sample/topic"] ? bindingsResolver.cache["/sample/topic"]["/sample/topic"] : null;
|
||||
it( "Result should be true", function () {
|
||||
expect( result ).to.be.ok();
|
||||
} );
|
||||
it( "Should create a resolver cache entry", function () {
|
||||
expect( cached ).to.be.ok();
|
||||
} );
|
||||
} );
|
||||
});
|
||||
} );
|
||||
} );
|
||||
Loading…
Reference in a new issue