/*
 * signal__with_details.js
 */

const gi = require('../lib/')
const Gtk = gi.require('Gtk', '3.0')
const Gdk = gi.require('Gdk', '3.0')
const common = require('./__common__.js')

gi.startLoop()
Gtk.init()

{

  let didNotify = false

  const button = new Gtk.Button()
  button.connect('notify::label', (...args) => {
    console.log('notify::label called', ...args)
    didNotify = true
  })
  button.setLabel('test')

  common.assert(button.getLabel() === 'test', 'button.setLabel did not set the label, got: ' + button.getLabel())
  common.assert(didNotify, 'notify::label not emitted')

  common.mustThrow('invalid signal name', () => {
    button.connect('notifx::label', () => {})
  })
}

console.log('done')

@@ -599,38 +599,95 @@
 mon.
-mustThrow('invalid signal name
+it('should throw when signal name is invalid', common.mustThrow('Signal name is invalid
 ', (
@@ -743,16 +743,17 @@
 %7B%7D)%0A  %7D)
+)
 %0A%7D%0A%0Acons

Fix use of mustThrow