Skip to content

Commit e9152bd

Browse files
committed
Added test to verify mobxjs#1524
1 parent 37162c0 commit e9152bd

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎test/base/map.js‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,3 +681,12 @@ test("toStringTag", () => {
681681
expect(x[Symbol.toStringTag]).toBe("Map")
682682
expect(Object.prototype.toString.call(x)).toBe("[object Map]")
683683
})
684+
685+
test("verify #1524", () => {
686+
class Store {
687+
@mobx.observable articles = new Map()
688+
}
689+
690+
const store = new Store()
691+
expect(typeof store.articles.observe === "function").toBe(true)
692+
})

0 commit comments

Comments
 (0)